Merge pull request #972 from lanfon72/patch-2
to fix condition error that used in `log_response`
This commit is contained in:
commit
727d6a1b61
|
@ -312,7 +312,7 @@ class HttpProtocol(asyncio.Protocol):
|
||||||
else:
|
else:
|
||||||
extra['byte'] = -1
|
extra['byte'] = -1
|
||||||
|
|
||||||
if self.request:
|
if self.request is not None:
|
||||||
extra['host'] = '{0}:{1}'.format(self.request.ip[0],
|
extra['host'] = '{0}:{1}'.format(self.request.ip[0],
|
||||||
self.request.ip[1])
|
self.request.ip[1])
|
||||||
extra['request'] = '{0} {1}'.format(self.request.method,
|
extra['request'] = '{0} {1}'.format(self.request.method,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user