proxy/proxy/rhnShared.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 637ac41756910ef7808d869aa86f520e0206de05
Author: Miroslav Suchý <msuchy(a)redhat.com>
Date: Fri Jun 17 12:49:31 2011 +0200
710433 - if we get data chunked, httplib of python will join them, so it is not
correct to send chunked header when data may not be chunked
diff --git a/proxy/proxy/rhnShared.py b/proxy/proxy/rhnShared.py
index 172a812..4481aff 100644
--- a/proxy/proxy/rhnShared.py
+++ b/proxy/proxy/rhnShared.py
@@ -407,11 +407,13 @@ class SharedHandler:
# output area.
for k in fromResponse.msg.keys():
-
# Get the value
-
v = self._get_header(k, fromResponse.msg)
+ if (k == 'transfer-encoding') and ('chunked' in v):
+ log_debug(5, "Filtering header", k, v)
+ continue
+
# Set the field in the response
rhnLib.setHeaderValue(toRequest.headers_out, k, v)
Show replies by date