From 0e9aa1984e3e145c68b5f0f392b04ad5c811adab Mon Sep 17 00:00:00 2001 From: xoy Date: Sat, 28 Jan 2023 21:58:08 +0100 Subject: [PATCH] fehlerbehebung --- http.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/http.go b/http.go index 02bcc65..e5cfe4d 100644 --- a/http.go +++ b/http.go @@ -6,7 +6,7 @@ import ( ) func httpHandleFunc(urlPath string, filepath string, contentType string) { - logger("-->" + urlPath + " " + filepath + " " + contentType) + logger("--> " + readHttpYML() + "/" + urlPath + " " + filepath + " " + contentType) http.HandleFunc("/"+urlPath, func(w http.ResponseWriter, r *http.Request) { w.Header().Add("Content-Type", contentType) @@ -15,6 +15,7 @@ func httpHandleFunc(urlPath string, filepath string, contentType string) { } func httpHandleFuncWithPOST(urlPath string, filepath string, contentType string) { + logger("--> " + readHttpYML() + "/" + urlPath + " " + filepath + " " + contentType) s := new(submit) s.data = "null" http.HandleFunc("/"+urlPath, func(w http.ResponseWriter, r *http.Request) {