浏览代码

originate test

Hal De 4 年之前
父节点
当前提交
7904ba925c
共有 1 个文件被更改,包括 0 次插入1 次删除
  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