Auth header : apparently doesn't work as expect if password is emtpy, so let's add a dummy char

This commit is contained in:
Alexandre Aubin 2024-01-30 17:44:26 +01:00
parent e9a335eaf7
commit 0566f31c4b

View file

@ -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