From aeee05a2e84408c1c8be86a49674a296604a6ed3 Mon Sep 17 00:00:00 2001 From: dkxce <25371256+dkxce@users.noreply.github.com> Date: Sat, 8 Jul 2023 10:24:50 +0300 Subject: [PATCH] Update views.py --- proxy/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/views.py b/proxy/views.py index abf1270..e1c586a 100644 --- a/proxy/views.py +++ b/proxy/views.py @@ -49,7 +49,7 @@ def proxy_view(request, url, requests_args=None, *args, **kwargs): headers["X-Real-IP"] = value headers["X-Forwarded-For"] = value if key.upper() == "NOREDIRECT": - follow_redirect = value + follow_redirect = not value if 'headers' not in requests_args: requests_args['headers'] = {}