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
d85dc4f999
commit
4e92965eda
1 changed files with 1 additions and 1 deletions
|
@ -423,7 +423,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