diff --git a/http.go b/http.go index ac5bf76..617bc67 100644 --- a/http.go +++ b/http.go @@ -8,7 +8,7 @@ import ( func httpHandleFunc(urlPath string, filepath string, contentType string) { logger(readHttpYML() + "/" + urlPath + " - " + filepath + " <" + contentType + ">") http.HandleFunc("/"+urlPath, func(w http.ResponseWriter, r *http.Request) { - logger(r.Method + " - request -> " + readHttpYML() + "/" + urlPath + " <" + contentType + ">") + logger(r.Method + " <--> request -> " + readHttpYML() + "/" + urlPath + " <" + contentType + ">") w.Header().Add("Content-Type", contentType) @@ -26,7 +26,7 @@ func httpHandleFuncWithPOST(urlPath string, filepath string, contentType string) errorPanic(err) } - logger(r.Method + " - request -> " + readHttpYML() + "/" + urlPath + " <" + contentType + ">") + logger(r.Method + " <--> request -> " + readHttpYML() + "/" + urlPath + " <" + contentType + ">") w.Header().Add("Content-Type", contentType)