force safe mode for async

This commit is contained in:
Kenneth Reitz
2011-12-24 03:06:13 -05:00
parent 0001f5b651
commit 4eb2759400
+5
View File
@@ -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