bug: HTTP logger should avoid add an empty Authorization header if conf.auth_header
is not set
#7431
Labels
bug
Something isn't working
conf.auth_header
is not set
#7431
Current Behavior
Currently, whether we configure
conf.auth_header
or not, APISIX HTTP logger will add theauthorization
header.Log server will reject such requests since they violate the HTTP syntax.
Expected Behavior
Avoid adding this header if
conf.auth_header
is empty.Error Logs
No response
Steps to Reproduce
Environment
apisix version
): latestuname -a
):openresty -V
ornginx -V
):curl http://127.0.0.1:9090/v1/server_info
):luarocks --version
):The text was updated successfully, but these errors were encountered: