Skip to content

Commit

Permalink
chore: renamed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
andruten committed Oct 18, 2024
1 parent 2fda99e commit 3c8aed8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion revproxy/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def get_request_headers(self):

def get_quoted_path(self, path):
"""Return quoted path to be used in proxied request"""
if settings.QUOTE_SPACES_AS_PLUS:
if settings.REVPROXY_QUOTE_SPACES_AS_PLUS:
return quote_plus(path.encode('utf8'), QUOTE_SAFE)
else:
return quote(path.encode('utf8'), QUOTE_SAFE)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class CustomProxyView(ProxyView):
decode_content=False,
headers=headers)

@override_settings(QUOTE_SPACES_AS_PLUS=False)
@override_settings(REVPROXY_QUOTE_SPACES_AS_PLUS=False)
def test_space_is_escaped_disabled(self):
class CustomProxyView(ProxyView):
upstream = 'http://example.com'
Expand Down

0 comments on commit 3c8aed8

Please sign in to comment.