admin: ServiceStatus() shouldn't have to write double http headers. (#3484)

Fixes #3482
master
Harshavardhana 8 years ago committed by GitHub
parent 1d134c1a94
commit e7b4e4e105
  1. 2
      cmd/admin-handlers.go

@ -36,8 +36,8 @@ func (adminAPI adminAPIHandlers) ServiceStatusHandler(w http.ResponseWriter, r *
if err != nil { if err != nil {
writeErrorResponseNoHeader(w, r, ErrInternalError, r.URL.Path) writeErrorResponseNoHeader(w, r, ErrInternalError, r.URL.Path)
errorIf(err, "Failed to marshal storage info into json.") errorIf(err, "Failed to marshal storage info into json.")
return
} }
w.WriteHeader(http.StatusOK)
writeSuccessResponse(w, jsonBytes) writeSuccessResponse(w, jsonBytes)
} }

Loading…
Cancel
Save