gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-bank] branch master updated: Fix headers names.


From: gnunet
Subject: [GNUnet-SVN] [taler-bank] branch master updated: Fix headers names.
Date: Mon, 20 May 2019 14:16:22 +0200

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository bank.

The following commit(s) were added to refs/heads/master by this push:
     new 12f2db6  Fix headers names.
12f2db6 is described below

commit 12f2db66dc43d66a81155ae9faa6cd7bd6a02ca2
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon May 20 14:16:08 2019 +0200

    Fix headers names.
---
 talerbank/app/middleware.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/talerbank/app/middleware.py b/talerbank/app/middleware.py
index 7f0670c..220fa94 100644
--- a/talerbank/app/middleware.py
+++ b/talerbank/app/middleware.py
@@ -43,7 +43,7 @@ class DecompressionMiddleware:
     #        type that is handed to views).
     # @return Django-specific response object.
     def __call__(self, request):
-        if "deflate" == request.META.get("Content-Encoding"):
+        if "deflate" == request.META.get("HTTP_CONTENT_ENCODING"):
             request._body = zlib.decompress(request.body)
 
         return self.get_response(request)

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]