VictoriaMetrics/lib/promauth
Aliaksandr Valialkin d9e3670627
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:23:40 +02:00
..
testdata basic OAuth2 support for remoteWrite and scrape targets (#1316) 2021-05-22 18:02:01 +03:00
config_test.go lib/promauth: follow-up for fca3b14b7b 2024-01-31 19:47:53 +02:00
config.go lib/promauth: set the Host header to tlsServerName if itsn't empty 2024-03-07 01:23:40 +02:00