fehlerbehebung

This commit is contained in:
xoy 2023-01-28 21:58:08 +01:00
parent 1ed0597e04
commit 0e9aa1984e
1 changed files with 2 additions and 1 deletions

View File

@ -6,7 +6,7 @@ import (
) )
func httpHandleFunc(urlPath string, filepath string, contentType string) { 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) { http.HandleFunc("/"+urlPath, func(w http.ResponseWriter, r *http.Request) {
w.Header().Add("Content-Type", contentType) 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) { func httpHandleFuncWithPOST(urlPath string, filepath string, contentType string) {
logger("--> " + readHttpYML() + "/" + urlPath + " " + filepath + " " + contentType)
s := new(submit) s := new(submit)
s.data = "null" s.data = "null"
http.HandleFunc("/"+urlPath, func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/"+urlPath, func(w http.ResponseWriter, r *http.Request) {