Skip to content

Commit 2b51eab

Browse files
committed
better error diagnostics, if missing auth cookie
1 parent edd804e commit 2b51eab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pushpull/websocket/gateway.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
async def websocket_rabbitmq_gateway(request):
2020
if config.AUTH_COOKIE != '':
21-
authorization = request.cookies[config.AUTH_COOKIE];
21+
authorization = request.cookies.get(config.AUTH_COOKIE);
2222
else:
2323
authorization = decode_auth_querystring_param(request.GET)
2424
try:

0 commit comments

Comments
 (0)