summaryrefslogtreecommitdiffhomepage
path: root/modules/luci-base/ucode/controller
diff options
context:
space:
mode:
Diffstat (limited to 'modules/luci-base/ucode/controller')
-rw-r--r--modules/luci-base/ucode/controller/admin/index.uc4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/luci-base/ucode/controller/admin/index.uc b/modules/luci-base/ucode/controller/admin/index.uc
index f0f7c7fd4d..d433e1161e 100644
--- a/modules/luci-base/ucode/controller/admin/index.uc
+++ b/modules/luci-base/ucode/controller/admin/index.uc
@@ -143,8 +143,8 @@ return {
if (http.getenv('HTTPS') == 'on')
http.header('Set-Cookie', `sysauth_https=; expires=Thu, 01 Jan 1970 01:00:00 GMT; path=${url}`);
-
- http.header('Set-Cookie', `sysauth_http=; expires=Thu, 01 Jan 1970 01:00:00 GMT; path=${url}`);
+ else
+ http.header('Set-Cookie', `sysauth_http=; expires=Thu, 01 Jan 1970 01:00:00 GMT; path=${url}`);
}
http.redirect(url);