satellite/console/limits: add content-type to response, fix error
Change-Id: I63dffb5372456569b100f97b04eacc1fc19bddf5
This commit is contained in:
parent
c207cd08fc
commit
48303bc0a9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user