|
|
@@ -117,7 +117,6 @@ class AuthMiddleware:
|
|
|
for device in app.cache['devices']:
|
|
|
if ((header == bytes('{}_{}'.format(app.config['AUTH_HEADER'].lower(), device), 'utf-8')) and
|
|
|
(value == bytes(app.cache['devices'][device], 'utf-8'))):
|
|
|
- scope['headers'][b'device']=bytes(device, 'utf-8')
|
|
|
return await self.app(scope, receive, send)
|
|
|
# Paths "/openapi.json" and "/ui" do not require auth
|
|
|
if (('path' in scope) and
|