Missing path
in scope['server']
, if run with UNIX socket
#2559
-
Not sure why this doesn't appear to be supported, although the underlying socket.getsockname() supports it. Perhaps because this method is too bizarre to handle? Steps to reproduce:
It shows The spec:
https://asgi.readthedocs.io/en/stable/specs/www.html#http-connection-scope Example code: # scopedump.py
async def app(scope, receive, send):
assert scope['type'] == 'http'
await send({
'type': 'http.response.start',
'status': 200,
})
await send({
'type': 'http.response.body',
'body': str(scope.get('server', None)).encode(),
}) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Was that always in the specification? I didn't see it before and I don't recall people complaining. |
Beta Was this translation helpful? Give feedback.
Can you check #2561 ? @nggit