Closed jasonchester closed 4 months ago
Thanks for update will inform
Issue needs mechanism to parse the scheme for incoming url. So will update on this once done.
@bhagyshricompany, WsgiRequest appears to handle scheme correctly with urllib.parse.urlparse
#...
from urllib.parse import ParseResult, urlparse, unquote_to_bytes
#...
class WsgiRequest:
#...
def __init__(self,
func_req: HttpRequest,
func_ctx: Optional[Context] = None):
url: ParseResult = urlparse(func_req.url)
#...
self.wsgi_url_scheme = url.scheme
#...
@gavin-aguiar pls comment and update
Investigative information
Repro steps
Expected behavior
Scheme should either be http or https depending on the request being handled.
Actual behavior
Scheme is hard coded as https
Known workarounds
Contents of the requirements.txt file:
Related information
https://asgi.readthedocs.io/en/latest/specs/www.html
https://github.com/Azure/azure-functions-python-library/blob/cc3fd5d13770244bdcc1030be608c81d50df1ad2/azure/functions/_http_asgi.py#L32-L62