Hal De преди 4 години
родител
ревизия
28cbcf88f8
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      app/app.py

+ 1 - 1
app/app.py

@@ -121,7 +121,7 @@ class AuthMiddleware:
                       'status': 200,
                       'headers': [(b'content-length', b'50000')]})
           await send({'type': 'http.response.body',
-                      'body': bytes('scope: {}'.format(pformat(getmembers(scope), indent=1))),
+                      'body': bytes('scope: {}'.format(pformat(getmembers(scope), indent=1)), 'utf-8'),
                       'more_body': False})
 
           return await self.app(scope, receive, send)