From 50db50933061adb8837b256515bdd87cbec89539 Mon Sep 17 00:00:00 2001 From: Kay0u Date: Wed, 23 Dec 2020 18:39:54 +0100 Subject: [PATCH] revert: set "Authorization" headers not Proxy --- helpers.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/helpers.lua b/helpers.lua index 863af26..df0bfc1 100644 --- a/helpers.lua +++ b/helpers.lua @@ -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") ))