Skip to content
This repository has been archived by the owner on Dec 28, 2017. It is now read-only.

Commit

Permalink
Disable zlib checksumming to play nicely with .NET and others.
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Taylor committed Apr 22, 2012
1 parent 409df1a commit 314d2f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emdr/daemons/gateway/wsgi.py
Expand Up @@ -40,7 +40,8 @@ def get_decompressed_message():
:returns: The de-compressed request body.
"""
if request.headers.get('Content-Encoding', '') == 'gzip':
return zlib.decompress(request.body.read())
# Negative wbits supresses adler32 checksumming.
return zlib.decompress(request.body.read(), wbits=-15)
else:
return request.body.read()

Expand Down

0 comments on commit 314d2f1

Please sign in to comment.