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'