From 3c8aed83343f181952156e742aa08deb97d69567 Mon Sep 17 00:00:00 2001 From: andruten Date: Fri, 18 Oct 2024 23:22:35 +0200 Subject: [PATCH] chore: renamed variable --- revproxy/views.py | 2 +- tests/test_views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/revproxy/views.py b/revproxy/views.py index 872607a..ffa76b9 100644 --- a/revproxy/views.py +++ b/revproxy/views.py @@ -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) diff --git a/tests/test_views.py b/tests/test_views.py index 6b49df2..66bf6ed 100644 --- a/tests/test_views.py +++ b/tests/test_views.py @@ -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'