@@ -239,7 +239,7 @@ async def proxy(self, port, proxied_path):
239
239
# headers to see if and where they are being proxied from. We set
240
240
# them to be {base_url}/proxy/{port}.
241
241
headers ['X-Forwarded-Context' ] = headers ['X-ProxyContextPath' ] = \
242
- url_path_join (self .base_url , 'proxy' , port )
242
+ url_path_join (self .base_url , 'proxy' , str ( port ) )
243
243
244
244
req = httpclient .HTTPRequest (
245
245
client_uri , method = self .request .method , body = body ,
@@ -262,7 +262,7 @@ async def proxy(self, port, proxied_path):
262
262
263
263
for header , v in response .headers .get_all ():
264
264
if header not in ('Content-Length' , 'Transfer-Encoding' ,
265
- 'Content-Encoding' , 'Connection' ):
265
+ 'Content-Encoding' , 'Connection' ):
266
266
# some header appear multiple times, eg 'Set-Cookie'
267
267
self .add_header (header , v )
268
268
@@ -482,6 +482,7 @@ def patch(self, path):
482
482
def options (self , path ):
483
483
return self .proxy (self .port , path )
484
484
485
+
485
486
def setup_handlers (web_app ):
486
487
host_pattern = '.*$'
487
488
web_app .add_handlers ('.*' , [
0 commit comments