Skip to content

Commit 28b5677

Browse files
committed
Set appropriate headers in /services endpoint.
Signed-off-by: Josh Carp <[email protected]>
1 parent 07d6cfc commit 28b5677

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
@@ -15,6 +15,7 @@
1515
* [BUGFIX] AlertManager: remove stale template files. #4495
1616
* [BUGFIX] Distributor: fix bug in query-exemplar where some results would get dropped. #4582
1717
* [BUGFIX] Update Thanos dependency: compactor tracing support, azure blocks storage memory fix. #4585
18+
* [BUGFIX] Set appropriate `Content-Type` header for /services endpoint, which previously hard-coded `text/plain`. #4596
1819

1920
## 1.11.0 2021-11-25
2021

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)