bergum commited on
Commit
025fe4a
1 Parent(s): eebe15e

Update proxy.py

Browse files
Files changed (1) hide show
  1. proxy.py +1 -0
proxy.py CHANGED
@@ -17,6 +17,7 @@ class ProxyRequestHandler(http.server.SimpleHTTPRequestHandler):
17
  if 'Host' in headers:
18
  del headers['Host'] # Remove "Host" header to avoid "HTTP/1.1 400 Bad Request" error
19
  conn = http.client.HTTPConnection('localhost', PROXY_PORT)
 
20
  conn.request('GET', url, headers=headers)
21
  response = conn.getresponse()
22
  self.send_response(response.status)
 
17
  if 'Host' in headers:
18
  del headers['Host'] # Remove "Host" header to avoid "HTTP/1.1 400 Bad Request" error
19
  conn = http.client.HTTPConnection('localhost', PROXY_PORT)
20
+ print(headers)
21
  conn.request('GET', url, headers=headers)
22
  response = conn.getresponse()
23
  self.send_response(response.status)