Skip to content

Commit

Permalink
Update views.py
Browse files Browse the repository at this point in the history
jazzband#159
Proxy replaces space encoded as %20 with + jazzband#159
  • Loading branch information
qx authored Sep 7, 2024
1 parent e7ad0c2 commit 3d92f2b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion revproxy/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,12 @@ def get_request_headers(self):

return request_headers

# def get_quoted_path(self, path):
# """Return quoted path to be used in proxied request"""
# return quote_plus(path.encode('utf8'), QUOTE_SAFE)
def get_quoted_path(self, path):
"""Return quoted path to be used in proxied request"""
return quote_plus(path.encode('utf8'), QUOTE_SAFE)
return quote(path.encode('utf8'), QUOTE_SAFE)

def get_encoded_query_params(self):
"""Return encoded query params to be used in proxied request"""
Expand Down

0 comments on commit 3d92f2b

Please sign in to comment.