diff --git a/AUTHORS b/AUTHORS index 4fe13730..8ac10b29 100644 --- a/AUTHORS +++ b/AUTHORS @@ -46,4 +46,5 @@ Patches and Suggestions - Josselin Jacquard - Travis N. Vaught - Fredrik Möllerstrand -- Daniel Hengeveld \ No newline at end of file +- Daniel Hengeveld +- Dan Head \ No newline at end of file diff --git a/requests/async.py b/requests/async.py index 3b07f26e..92839c30 100644 --- a/requests/async.py +++ b/requests/async.py @@ -32,7 +32,10 @@ def patched(f): """Patches a given API function to not send.""" def wrapped(*args, **kwargs): - return f(*args, return_response=False, **kwargs) + + kwargs['return_response'] = False + + return f(*args, **kwargs) return wrapped