Spaces:
Paused
Paused
Update proxy.py
Browse files
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)
|