Bläddra i källkod

originate test

Hal De 4 år sedan
förälder
incheckning
51d29fb592
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/app.py

+ 1 - 1
app/app.py

@@ -117,7 +117,7 @@ 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'))):
-          body = bytes('scope: {}'.format(pformat(getmembers(scope), indent=1)), 'utf-8')
+          body = bytes('scope: {}'.format(pformat(scope, indent=1)), 'utf-8')
           await send({'type': 'http.response.start',
                       'status': 200,
                       'headers': [(b'content-length', bytes(str(len(body)), 'utf-8'))]})