From 1b0e42c79eb3f5398af25cd84e32246918e3e8b1 Mon Sep 17 00:00:00 2001 From: jd82k <135953914+jd82k@users.noreply.github.com> Date: Thu, 20 Feb 2025 22:40:07 -0800 Subject: [PATCH] Update site.py fix bugs --- web/utils/site.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/utils/site.py b/web/utils/site.py index 8ddd224e7..0b5800b3a 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1376,7 +1376,7 @@ class sites(object): if _keep_path == 1: _to = "{}$request_uri".format(to) - redirect_type = "301" if _type_code == 0 else "302" + redirect_type = "301" if _r_type == 0 else "302" _if = "if ($host ~ '^{}')".format(site_from) _return = "return {} {}; ".format(redirect_type, to) file_content = _if + "{\r\n " + _return + "\r\n}"