Skip to content

Commit

Permalink
Fix ASGI access logs missing method with websockets (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
gi0baro authored Oct 29, 2024
1 parent f5f6e69 commit 261ceba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion granian/asgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def access_log(t, scope, resp_code):
'protocol': 'HTTP/' + scope['http_version'],
'path': scope['path'],
'qs': scope['query_string'],
'method': scope['method'],
'method': scope.get('method', '-'),
'scheme': scope['scheme'],
},
resp_code,
Expand Down

0 comments on commit 261ceba

Please sign in to comment.