bergum commited on
Commit
f90bd94
1 Parent(s): 16ec247

Update proxy.py

Browse files
Files changed (1) hide show
  1. proxy.py +0 -1
proxy.py CHANGED
@@ -13,7 +13,6 @@ class ProxyRequestHandler(http.server.SimpleHTTPRequestHandler):
13
  url = 'http://localhost:{}{}'.format(PROXY_PORT, '/site' + self.path)
14
  else:
15
  url = 'http://localhost:{}{}'.format(PROXY_PORT, self.path)
16
- print("path={}, url={}".format(self.path,url))
17
  headers = dict(self.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)
 
13
  url = 'http://localhost:{}{}'.format(PROXY_PORT, '/site' + self.path)
14
  else:
15
  url = 'http://localhost:{}{}'.format(PROXY_PORT, self.path)
 
16
  headers = dict(self.headers)
17
  del headers['Host'] # Remove "Host" header to avoid "HTTP/1.1 400 Bad Request" error
18
  conn = http.client.HTTPConnection('localhost', PROXY_PORT)