fix whitespace

This commit is contained in:
Paul Jongsma 2016-11-10 13:06:27 +01:00
parent be5588d5d8
commit b92e46df40

View File

@ -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),