mirror of
https://github.com/minio/minio.git
synced 2025-01-12 07:23:23 -05:00
admin: ServiceStatus() shouldn't have to write double http headers. (#3484)
Fixes #3482
This commit is contained in:
parent
1d134c1a94
commit
e7b4e4e105
@ -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…
Reference in New Issue
Block a user