Stupid typo

This commit is contained in:
Alexandre Aubin 2023-01-09 20:51:00 +01:00
parent ca7cf2c2cc
commit b6aba201cd

View file

@ -422,7 +422,7 @@ function clear_headers()
-- Clear auth header only if it's a 'Basic' auth stuff, not 'Bearer' stuff -- Clear auth header only if it's a 'Basic' auth stuff, not 'Bearer' stuff
-- Also ignore PROPFIND routes used by Nextcloud (et al.?) -- Also ignore PROPFIND routes used by Nextcloud (et al.?)
if ngx.var.request_method ~= "PROPFIND" and ngx.req.get_headers()["Authorization"] then 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 if b64_cred ~= nil then
ngx.req.clear_header("Authorization") ngx.req.clear_header("Authorization")
end end