Skip to content

Commit

Permalink
Updated http_wsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
gavin-aguiar committed Nov 19, 2024
1 parent 5c97f07 commit 72f6ddd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions azure/functions/_http_wsgi.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from typing import Dict, List, Optional, Any
import logging
from io import BytesIO, StringIO
from os import linesep
from typing import Dict, List, Optional, Any
from urllib.parse import ParseResult, urlparse, unquote_to_bytes
from wsgiref.headers import Headers

Expand All @@ -12,9 +12,7 @@


def wsgi_encoding_dance(value):
if isinstance(value, str):
return value.encode("latin-1")
return value
return value.encode().decode("latin1")


class WsgiRequest:
Expand Down

0 comments on commit 72f6ddd

Please sign in to comment.