Skip to content

Commit

Permalink
fixed critical bug in http client
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jul 27, 2015
1 parent c151b33 commit 11c5b02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/quorum/httpc.py
Expand Up @@ -285,7 +285,7 @@ def _method_empty(name, url, headers = None, handle = None, **kwargs):
file = _resolve(url, name, headers, None, TIMEOUT)
try: result = file.read()
finally: file.close()
return result, file if handle else result
return (result, file) if handle else result

def _method_payload(
name,
Expand Down Expand Up @@ -333,7 +333,7 @@ def _method_payload(
file = _resolve(url, name, headers, data, TIMEOUT)
try: result = file.read()
finally: file.close()
return result, file if handle else result
return (result, file) if handle else result

def _resolve(*args, **kwargs):
_global = globals()
Expand Down

0 comments on commit 11c5b02

Please sign in to comment.