From 188123cb34f6f95c1be4e671c13769da2536c89d Mon Sep 17 00:00:00 2001 From: xoy Date: Sat, 28 Jan 2023 22:32:20 +0100 Subject: [PATCH] =?UTF-8?q?logging=20ver=C3=A4ndert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/http.go b/http.go index 617bc67..74b7f0f 100644 --- a/http.go +++ b/http.go @@ -6,9 +6,9 @@ import ( ) func httpHandleFunc(urlPath string, filepath string, contentType string) { - logger(readHttpYML() + "/" + urlPath + " - " + filepath + " <" + contentType + ">") + 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) @@ -17,7 +17,7 @@ func httpHandleFunc(urlPath string, filepath string, contentType string) { } func httpHandleFuncWithPOST(urlPath string, filepath string, contentType string) { - logger(readHttpYML() + "/" + urlPath + " - " + filepath + " <" + contentType + ">") + logger(readHttpYML() + "/" + urlPath + " <--> " + filepath + " <" + contentType + ">") s := new(submit) s.data = "null" http.HandleFunc("/"+urlPath, func(w http.ResponseWriter, r *http.Request) { @@ -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)