From 48303bc0a95c75fdb0d306c411858f8b68d80a10 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Thu, 19 Dec 2019 16:28:25 +0200 Subject: [PATCH] satellite/console/limits: add content-type to response, fix error Change-Id: I63dffb5372456569b100f97b04eacc1fc19bddf5 --- satellite/console/consoleweb/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/satellite/console/consoleweb/server.go b/satellite/console/consoleweb/server.go index 0b460f20c..5448fc79a 100644 --- a/satellite/console/consoleweb/server.go +++ b/satellite/console/consoleweb/server.go @@ -492,6 +492,8 @@ func (server *Server) projectUsageLimitsHandler(w http.ResponseWriter, r *http.R } } + w.Header().Set("Content-Type", "application/json") + if idParam, ok = mux.Vars(r)["id"]; !ok { handleError(http.StatusBadRequest, errs.New("missing project id route param")) return