From b6aba201cde52eef4accdcb7029026d5219f3f1d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 9 Jan 2023 20:51:00 +0100 Subject: [PATCH] Stupid typo --- helpers.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers.lua b/helpers.lua index ef78202..2f8f1f0 100644 --- a/helpers.lua +++ b/helpers.lua @@ -422,7 +422,7 @@ function clear_headers() -- Clear auth header only if it's a 'Basic' auth stuff, not 'Bearer' stuff -- Also ignore PROPFIND routes used by Nextcloud (et al.?) if ngx.var.request_method ~= "PROPFIND" and ngx.req.get_headers()["Authorization"] then - _, _, b64_cred = string.find(auth_header, "^Basic%s+(.+)$") + _, _, b64_cred = string.find(ngx.req.get_headers()["Authorization"], "^Basic%s+(.+)$") if b64_cred ~= nil then ngx.req.clear_header("Authorization") end