Skip to content

Commit c458295

Browse files
authored
Set appropriate headers in /services endpoint. (#4596)
Signed-off-by: Josh Carp <[email protected]>
1 parent 6b93903 commit c458295

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
* [BUGFIX] AlertManager: remove stale template files. #4495
2424
* [BUGFIX] Distributor: fix bug in query-exemplar where some results would get dropped. #4582
2525
* [BUGFIX] Update Thanos dependency: compactor tracing support, azure blocks storage memory fix. #4585
26+
* [BUGFIX] Set appropriate `Content-Type` header for /services endpoint, which previously hard-coded `text/plain`. #4596
2627
* [BUGFIX] Querier: Disable query scheduler SRV DNS lookup, which removes noisy log messages about "failed DNS SRV record lookup". #4601
2728
* [BUGFIX] Memberlist: fixed corrupted packets when sending compound messages with more than 255 messages or messages bigger than 64KB. #4601
2829

pkg/cortex/status.go

-3
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ func init() {
5050
}
5151

5252
func (t *Cortex) servicesHandler(w http.ResponseWriter, r *http.Request) {
53-
w.WriteHeader(200)
54-
w.Header().Set("Content-Type", "text/plain")
55-
5653
svcs := make([]renderService, 0)
5754
for mod, s := range t.ServiceMap {
5855
svcs = append(svcs, renderService{

0 commit comments

Comments
 (0)