fehlerbehebung
This commit is contained in:
parent
1ed0597e04
commit
0e9aa1984e
3
http.go
3
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) {
|
||||
|
|
Loading…
Reference in New Issue