From a405dccb4d40f6adf1344dcbb11709c8de08710a Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Wed, 10 May 2017 11:02:01 +0200 Subject: [PATCH] mediaapi/routing/routing: Comment Content-Type override behaviour --- src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go b/src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go index daa598628..844a2c5ab 100644 --- a/src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go +++ b/src/github.com/matrix-org/dendrite/mediaapi/routing/routing.go @@ -43,7 +43,7 @@ func Setup(servMux *http.ServeMux, httpClient *http.Client, cfg config.MediaAPI, // Set common headers returned regardless of the outcome of the request util.SetCORSHeaders(w) - // TODO: fix comment + // Content-Type will be overridden in case of returning file data, else we respond with JSON-formatted errors w.Header().Set("Content-Type", "application/json") vars := mux.Vars(req)