소스 검색

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