Skip to content

Commit e6ae00d

Browse files
author
Mike Solomon
committed
Changes options
1 parent 0fcd230 commit e6ae00d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

python-ffi/Affjax.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,7 @@
4444

4545
# todo - is there an analog for withCredentials here?
4646
def _ajax(mkHeader, options):
47-
print("called ajax")
48-
4947
def _1(errback, callback):
50-
print("STARTING")
5148
if options["responseType"] in ["arraybuffer", "blob", "document"]:
5249
errback(
5350
Exception(
@@ -64,7 +61,7 @@ def _toThreading():
6461
else http.client.HTTPSConnection(parsedUrl.netloc)
6562
)
6663
headers = {}
67-
if options.username and options.password:
64+
if options["username"] and options["password"]:
6865
userAndPass = b64encode(b"username:password").decode("ascii")
6966
headers["Authorization"] = "Basic %s" % userAndPass
7067
if options["headers"]:

0 commit comments

Comments
 (0)