mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2026-05-09 05:21:13 +02:00
Disable xf2test before posting test version.
This commit is contained in:
parent
a8bdc69cea
commit
0b0703457c
2 changed files with 9 additions and 9 deletions
|
|
@ -110,7 +110,7 @@ from . import adapter_tgstorytimecom
|
|||
from . import adapter_itcouldhappennet
|
||||
from . import adapter_forumsspacebattlescom
|
||||
from . import adapter_forumssufficientvelocitycom
|
||||
from . import adapter_xf2testsufficientvelocitycom
|
||||
#from . import adapter_xf2testsufficientvelocitycom
|
||||
from . import adapter_forumquestionablequestingcom
|
||||
from . import adapter_ninelivesarchivecom
|
||||
from . import adapter_masseffect2in
|
||||
|
|
|
|||
|
|
@ -1055,10 +1055,10 @@ class Configuration(configparser.SafeConfigParser):
|
|||
if 'Accept' not in headers:
|
||||
headers['Accept']="text/html,*/*"
|
||||
|
||||
if "xf2test" in url:
|
||||
import base64
|
||||
base64string = base64.encodestring(b"xf2demo2019:dBfbyHVvRCsYtLg846r3").replace(b'\n', b'')
|
||||
headers['Authorization']=b"Basic %s" % base64string
|
||||
# if "xf2test" in url:
|
||||
# import base64
|
||||
# base64string = base64.encodestring(b"xf2demo2019:dBfbyHVvRCsYtLg846r3").replace(b'\n', b'')
|
||||
# headers['Authorization']=b"Basic %s" % base64string
|
||||
|
||||
req = Request(url,
|
||||
data=ensure_binary(urlencode(parameters)),
|
||||
|
|
@ -1128,10 +1128,10 @@ class Configuration(configparser.SafeConfigParser):
|
|||
## not present at all
|
||||
headers.append(('Referer',referer))
|
||||
|
||||
if "xf2test" in url:
|
||||
import base64
|
||||
base64string = base64.encodestring(b"xf2demo2019:dBfbyHVvRCsYtLg846r3").replace(b'\n', b'')
|
||||
headers.append(('Authorization', b"Basic %s" % base64string))
|
||||
# if "xf2test" in url:
|
||||
# import base64
|
||||
# base64string = base64.encodestring(b"xf2demo2019:dBfbyHVvRCsYtLg846r3").replace(b'\n', b'')
|
||||
# headers.append(('Authorization', b"Basic %s" % base64string))
|
||||
|
||||
self.opener.addheaders = headers
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue