Skip to content

Commit

Permalink
added logging for url encode
Browse files Browse the repository at this point in the history
  • Loading branch information
deronsmith committed Oct 9, 2024
1 parent 18e0970 commit d37f721
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hms_rest_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def flask_proxy(request, flask_url):
return HttpResponse(flask_request, content_type="application/json")
elif method == "GET":
proxy_url += "?" + request.GET.urlencode()
logger.info(f"Flask Url: {proxy_url}")
flask_request = requests.request("get", proxy_url, timeout=timeout)
headers = flask_request.headers
del headers["Content-Type"]
Expand Down

0 comments on commit d37f721

Please sign in to comment.