Explorar o código

originate test

Hal De %!s(int64=4) %!d(string=hai) anos
pai
achega
7904ba925c
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      app/app.py

+ 0 - 1
app/app.py

@@ -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