Ver código fonte

originate test

Hal De 4 anos atrás
pai
commit
7904ba925c
1 arquivos alterados com 0 adições e 1 exclusões
  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