Apply code review
authorjw_wonny.cha <jw_wonny.cha@samsung.com>
Tue, 26 Mar 2019 06:18:50 +0000 (15:18 +0900)
committerjw_wonny.cha <jw_wonny.cha@samsung.com>
Tue, 26 Mar 2019 06:18:50 +0000 (15:18 +0900)
src/restapi/v1/restapi.go

index 5346dc7..e17d9de 100644 (file)
@@ -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)
        // }
 }