VictoriaMetrics/lib/promauth
Aliaksandr Valialkin 7c4d7dc6dd
lib/promauth: properly set Host header in requests to scrape targets.
The `Host` header must be set via net/http.Request.Host field, since net/http.Client
ignores this header if it is set via Request.Header.Set().

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/5969
Updates https://github.com/VictoriaMetrics/VictoriaMetrics/pull/5970
2024-03-17 23:22:54 +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: properly set Host header in requests to scrape targets. 2024-03-17 23:22:54 +02:00