Permalink
Browse files

Disable zlib checksumming to play nicely with .NET and others.

  • Loading branch information...
1 parent 409df1a commit 314d2f1a9bc5b1dc76b1b4fc37fb9502b07cfadf Greg Taylor committed Apr 22, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 emdr/daemons/gateway/wsgi.py
@@ -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()

0 comments on commit 314d2f1

Please sign in to comment.