satellite/console/limits: add content-type to response, fix error

Change-Id: I63dffb5372456569b100f97b04eacc1fc19bddf5
This commit is contained in:
Yaroslav 2019-12-19 16:28:25 +02:00 committed by Stefan Benten
parent c207cd08fc
commit 48303bc0a9

View File

@ -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