We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fcd230 commit e6ae00dCopy full SHA for e6ae00d
python-ffi/Affjax.py
@@ -44,10 +44,7 @@
44
45
# todo - is there an analog for withCredentials here?
46
def _ajax(mkHeader, options):
47
- print("called ajax")
48
-
49
def _1(errback, callback):
50
- print("STARTING")
51
if options["responseType"] in ["arraybuffer", "blob", "document"]:
52
errback(
53
Exception(
@@ -64,7 +61,7 @@ def _toThreading():
64
61
else http.client.HTTPSConnection(parsedUrl.netloc)
65
62
)
66
63
headers = {}
67
- if options.username and options.password:
+ if options["username"] and options["password"]:
68
userAndPass = b64encode(b"username:password").decode("ascii")
69
headers["Authorization"] = "Basic %s" % userAndPass
70
if options["headers"]:
0 commit comments