prometheus/config
Matt Hughes 528b3fc60f scraper: fix UTF-8 scraping header always sent with PrometheusText1.0.0
The `Accept` header should not include `escape=allow-utf-8` unless
explicitly requested.

Conveniently, there was already a test covering this header's value, it
just required updating so it also asserts that this value in the header
is not set in the cases we don't expect it to be set. I also converted
those tests into table tests to help make failures clearer.

Issue: https://github.com/prometheus/prometheus/issues/15857
Signed-off-by: Matt Hughes <mhughes@uw.co.uk>
2025-02-24 11:15:27 +01:00
..
testdata Rename to keep_identifying_resource_attributes 2024-11-29 15:19:14 +01:00
config.go scraper: fix UTF-8 scraping header always sent with PrometheusText1.0.0 2025-02-24 11:15:27 +01:00
config_default_test.go config: Remove validation GetScrapeConfigs; require using config.Load. 2024-12-11 13:31:01 +00:00
config_test.go Improved error. 2024-12-12 10:57:27 +00:00
config_windows_test.go config: Remove validation GetScrapeConfigs; require using config.Load. 2024-12-11 13:31:01 +00:00
reload.go autoreload: do not ignore errors 2024-09-03 11:37:14 +02:00
reload_test.go Use t.Tempdir 2024-09-03 11:37:29 +02:00