revert: set "Authorization" headers not Proxy

This commit is contained in:
Kay0u 2020-12-23 18:39:54 +01:00
parent 0ff5cc6af7
commit 50db509330
No known key found for this signature in database
GPG key ID: AAFEEB16CFA2AE2D

View file

@ -429,8 +429,8 @@ end
-- application underneath.
function set_headers(user)
local user = user or authUser
-- Set `Proxy-Authorization` header to enable HTTP authentification
ngx.req.set_header("Proxy-Authorization", "Basic "..ngx.encode_base64(
-- Set `Authorization` header to enable HTTP authentification
ngx.req.set_header("Authorization", "Basic "..ngx.encode_base64(
user..":"..cache:get(user.."-password")
))