Mercurial > libervia-web
diff libervia/server/server.py @ 1224:62bf4f87c249
server: some encoding fixes following python 3 port
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 06 Oct 2019 22:21:13 +0200 |
parents | c9fc839d304c |
children | f3edbca73713 |
line wrap: on
line diff
--- a/libervia/server/server.py Sun Aug 25 12:16:34 2019 +0200 +++ b/libervia/server/server.py Sun Oct 06 22:21:13 2019 +0200 @@ -1310,11 +1310,10 @@ if proxy_port is not None else proxy_server ) - proxy_netloc = proxy_netloc.decode("utf-8") try: proxy_scheme = request.requestHeaders.getRawHeaders( "x-forwarded-proto" - )[0].decode("utf-8") + )[0] except TypeError: proxy_scheme = None else: