Hal De 4 rokov pred
rodič
commit
28cbcf88f8
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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)