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