mirror of
https://github.com/emmett-framework/granian.git
synced 2025-08-04 08:58:21 +00:00
Fix ASGI access logs missing method with websockets (#424)
This commit is contained in:
parent
f5f6e690d3
commit
261ceba3fd
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ def _build_access_logger(fmt):
|
||||||
'protocol': 'HTTP/' + scope['http_version'],
|
'protocol': 'HTTP/' + scope['http_version'],
|
||||||
'path': scope['path'],
|
'path': scope['path'],
|
||||||
'qs': scope['query_string'],
|
'qs': scope['query_string'],
|
||||||
'method': scope['method'],
|
'method': scope.get('method', '-'),
|
||||||
'scheme': scope['scheme'],
|
'scheme': scope['scheme'],
|
||||||
},
|
},
|
||||||
resp_code,
|
resp_code,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue