prometheus/scrape
Matt Hughes 5868e36d91 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-20 11:33:16 +00: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 scrape: reorder the switch case of errors (#15991) 2025-02-13 14:25:50 +01:00
scrape_test.go scraper: fix UTF-8 scraping header always sent with PrometheusText1.0.0 2025-02-20 11:33:16 +00: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