handle GET request only
This commit is contained in:
parent
aa0a00bac2
commit
5359b8b052
@ -615,7 +615,7 @@ func main() {
|
||||
o: make(map[string]*StreamObject),
|
||||
}
|
||||
|
||||
http.HandleFunc("/{path...}", server.handleRequest)
|
||||
http.HandleFunc("GET /{path...}", server.handleRequest)
|
||||
logrus.WithFields(logrus.Fields{"addr": ":8881"}).Info("serving app")
|
||||
http.ListenAndServe(":8881", nil)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user