Skip to content

Commit

Permalink
Fix gzip compression (pydap#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
regeirk committed Nov 16, 2017
1 parent 4ae73e3 commit 1559d98
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pydap/net.py
Expand Up @@ -23,8 +23,11 @@ def GET(url, application=None, session=None, timeout=DEFAULT_TIMEOUT):
_, _, path, query, fragment = urlsplit(url)
url = urlunsplit(('', '', path, query, fragment))

return follow_redirect(url, application=application, session=session,
timeout=timeout)
response = follow_redirect(url, application=application, session=session,
timeout=timeout)
# Decode request response (i.e. gzip)
response.decode_content()
return response


def raise_for_status(response):
Expand Down

0 comments on commit 1559d98

Please sign in to comment.