mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
Stupid typo
This commit is contained in:
parent
ca7cf2c2cc
commit
b6aba201cd
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue