From e7b4e4e105558085199a58afc2611c8a0110b142 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Tue, 20 Dec 2016 18:05:25 -0800 Subject: [PATCH] admin: ServiceStatus() shouldn't have to write double http headers. (#3484) Fixes #3482 --- cmd/admin-handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/admin-handlers.go b/cmd/admin-handlers.go index a4605fac9..63a3928b7 100644 --- a/cmd/admin-handlers.go +++ b/cmd/admin-handlers.go @@ -36,8 +36,8 @@ func (adminAPI adminAPIHandlers) ServiceStatusHandler(w http.ResponseWriter, r * if err != nil { writeErrorResponseNoHeader(w, r, ErrInternalError, r.URL.Path) errorIf(err, "Failed to marshal storage info into json.") + return } - w.WriteHeader(http.StatusOK) writeSuccessResponse(w, jsonBytes) }