read x-mesh-secret header correctly
This commit is contained in:
parent
2c395462b0
commit
a8fda62d24
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class MeshConsumer(AsyncWebsocketConsumer):
|
|||
|
||||
async def connect(self):
|
||||
self.headers = dict(self.scope["headers"])
|
||||
if not constant_time_compare(self.headers[b"X-Mesh-Secret"].strip(),
|
||||
if not constant_time_compare(self.headers[b"x-mesh-secret"].strip(),
|
||||
settings.SECRET_MESH_KEY.encode()):
|
||||
raise DenyConnection
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue