Added Listener HTTP HostHeader field to be configurable via profile.
Configuring Host header via Headers field does not work as expected as the gin package parses the Host header to Context.Request.Host instead of Context.Request.Header. The fix is to use existing HTTPConfig.HostHeader field from the listener configuration and compare it to Context.Request.Host.
As for setup using redirector, the HTTP request Host header field could be retrieved from X-Forwarded-Host since it is mentioned to be de-facto standard on mdn web docs
Added Listener HTTP
HostHeader
field to be configurable via profile.Configuring
Host
header viaHeaders
field does not work as expected as thegin
package parses theHost
header toContext.Request.Host
instead ofContext.Request.Header
. The fix is to use existingHTTPConfig.HostHeader
field from the listener configuration and compare it toContext.Request.Host
.As for setup using redirector, the HTTP request
Host
header field could be retrieved fromX-Forwarded-Host
since it is mentioned to be de-facto standard on mdn web docs