prometheus/scrape
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 Include test CA text info (#14699) 2024-08-20 19:41:02 +02:00
clientprotobuf.go lint: Revamp our linting rules, mostly around doc comments 2024-08-22 17:36:11 +02:00
helpers_test.go scrape: Fix metadata in WAL not working for histograms and summaries. 2025-01-15 20:12:38 +00:00
manager.go ref: JSONFileLogger slog handler, add scrape.FailureLogger interface 2024-11-28 23:14:31 -05:00
manager_test.go Scraping: stop storing discovered labels (#15261) 2024-12-21 13:33:08 +00:00
metrics.go Scraping: add metric for symbol table size 2024-07-05 10:16:22 +01:00
scrape.go Merge pull request #15540 from mmorel-35/prometheus/common@v0.61.0 2025-01-28 13:10:48 +01:00
scrape_test.go scraper: fix UTF-8 scraping header always sent with PrometheusText1.0.0 2025-02-24 11:15:27 +01:00
target.go scrape: Fix metadata in WAL not working for histograms and summaries. 2025-01-15 20:12:38 +00:00
target_test.go Scraping: stop storing discovered labels (#15261) 2024-12-21 13:33:08 +00:00