projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0001f5b
)
force safe mode for async
author
Kenneth Reitz
<me@kennethreitz.com>
Sat, 24 Dec 2011 08:06:13 +0000
(
03:06
-0500)
committer
Kenneth Reitz
<me@kennethreitz.com>
Sat, 24 Dec 2011 08:06:13 +0000
(
03:06
-0500)
requests/async.py
patch
|
blob
|
history
diff --git
a/requests/async.py
b/requests/async.py
index c91025fc89f0ffab43a78e2177e91e3ac99793ce..6f8de3800de944af5a1aa9f51670225e3ab224f3 100644
(file)
--- a/
requests/async.py
+++ b/
requests/async.py
@@
-36,6
+36,11
@@
def patched(f):
kwargs['return_response'] = False
kwargs['prefetch'] = True
+ config = kwargs.get('config', {})
+ config.update(safe_mode=True)
+
+ kwargs['config'] = config
+
return f(*args, **kwargs)
return wrapped