fix whitespace
This commit is contained in:
parent
be5588d5d8
commit
b92e46df40
|
@ -114,11 +114,10 @@ class HttpProtocol(asyncio.Protocol):
|
||||||
self.headers.append((name.decode(), value.decode('utf-8')))
|
self.headers.append((name.decode(), value.decode('utf-8')))
|
||||||
|
|
||||||
def on_headers_complete(self):
|
def on_headers_complete(self):
|
||||||
|
|
||||||
ra = self.transport.get_extra_info('peername')
|
ra = self.transport.get_extra_info('peername')
|
||||||
if ra:
|
if ra:
|
||||||
self.headers.append(('Remote-Addr','%s:%s' % ra))
|
self.headers.append(('Remote-Addr','%s:%s' % ra))
|
||||||
|
|
||||||
self.request = Request(
|
self.request = Request(
|
||||||
url_bytes=self.url,
|
url_bytes=self.url,
|
||||||
headers=dict(self.headers),
|
headers=dict(self.headers),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user