VictoriaMetrics/lib/promauth
Aliaksandr Valialkin cb259116b4
lib/promauth: set the Host header to tlsServerName if itsn't empty
If tlsServerName isn't empty, then it is likely the https request is sent to IP instead of hostname.
In this case the request will fail, since Go automatically sets the Host header to the IP instead
of the desired hostname at tlsServerName. So set the Host header to tlsServerName if itsn't empty.

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5802
2024-03-07 01:22:01 +02:00
..
testdata basic OAuth2 support for remoteWrite and scrape targets (#1316) 2021-05-22 16:20:18 +03:00
config.go lib/promauth: set the Host header to tlsServerName if itsn't empty 2024-03-07 01:22:01 +02:00
config_test.go lib/promauth: follow-up for fca3b14b7b 2024-01-31 19:45:16 +02:00