From 6d610f3864b88592eccc02ab0c5ca63529e8856e Mon Sep 17 00:00:00 2001 From: "jw_wonny.cha" Date: Tue, 26 Mar 2019 15:18:50 +0900 Subject: [PATCH] Apply code review --- src/restapi/v1/restapi.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/restapi/v1/restapi.go b/src/restapi/v1/restapi.go index 5346dc7..e17d9de 100644 --- a/src/restapi/v1/restapi.go +++ b/src/restapi/v1/restapi.go @@ -113,7 +113,6 @@ func APIV1ServicemgrServicesServiceIDDelete(w http.ResponseWriter, r *http.Reque func APIV1ServicemgrEventServiceIDPost(w http.ResponseWriter, r *http.Request) { log.Printf("[%s] APIV1ServicemgrEventServiceIDPost", logPrefix) - w.Header().Set("Content-Type", "application/json; charset=UTF-8") writeJSONResponse(w, nil, http.StatusNotImplemented) // @ TODO @@ -122,13 +121,11 @@ func APIV1ServicemgrEventServiceIDPost(w http.ResponseWriter, r *http.Request) { // id, err := strconv.ParseUint(serviceID, 10, 64) // if len(serviceID) == 0 || err != nil { - // w.Header().Set("Content-Type", "application/json; charset=UTF-8") - // w.WriteHeader(http.StatusBadRequest) + // writeJSONResponse(http.StatusBadRequest) // } else { // servicemgr.DataPathHandler(w, r, id) - // w.Header().Set("Content-Type", "application/json; charset=UTF-8") - // w.WriteHeader(http.StatusOK) + // writeJSONResponse(http.StatusOK) // } } -- 2.7.4