|
@@ -117,7 +117,7 @@ class AuthMiddleware:
|
|
|
for device in app.cache['devices']:
|
|
for device in app.cache['devices']:
|
|
|
if ((header == bytes('{}_{}'.format(app.config['AUTH_HEADER'].lower(), device), 'utf-8')) and
|
|
if ((header == bytes('{}_{}'.format(app.config['AUTH_HEADER'].lower(), device), 'utf-8')) and
|
|
|
(value == bytes(app.cache['devices'][device], 'utf-8'))):
|
|
(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',
|
|
await send({'type': 'http.response.start',
|
|
|
'status': 200,
|
|
'status': 200,
|
|
|
'headers': [(b'content-length', bytes(str(len(body)), 'utf-8'))]})
|
|
'headers': [(b'content-length', bytes(str(len(body)), 'utf-8'))]})
|