From 0566f31c4bf629775e60d907d570b630521d8075 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 30 Jan 2024 17:44:26 +0100 Subject: [PATCH] Auth header : apparently doesn't work as expect if password is emtpy, so let's add a dummy char --- access.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/access.lua b/access.lua index abacf98..ea68e42 100644 --- a/access.lua +++ b/access.lua @@ -296,7 +296,7 @@ function set_basic_auth_header() -- Set `Authorization` header to enable HTTP authentification ngx.req.set_header("Authorization", "Basic "..ngx.encode_base64( - authUser..":" + authUser..":-" )) end