added "hop headers" disallowed by Python 2.7 to set of
headers removed during the call, so one can use the gwt
forwarding fro debugging with 2.7
---
 frontend/afe/views.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/frontend/afe/views.py b/frontend/afe/views.py
index 3e1a6a8..f92339e 100644
--- a/frontend/afe/views.py
+++ b/frontend/afe/views.py
@@ -48,7 +48,10 @@ def gwt_forward(request, forward_addr):
                                                    body=request.raw_post_data)
     http_response = HttpResponse(content)
     for header, value in headers.iteritems():
-        if header not in ('connection',):
+        # remove components that could cause hop-by-hop errors
+        if header not in ('connection', 'keep-alive', 'proxy-authenticate',
+                          'proxy-authorization', 'te', 'trailers',
+                          'transfer-encoding', 'upgrade',):
             http_response[header] = value
     return http_response
 
-- 
1.7.7.6

_______________________________________________
Autotest-kernel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/autotest-kernel

Reply via email to