Cleanup
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
This commit is contained in:
parent
838c664767
commit
9dba5e416f
1
main.go
1
main.go
@ -47,7 +47,6 @@ func main() {
|
|||||||
filter := regexp.MustCompile(filterRegex)
|
filter := regexp.MustCompile(filterRegex)
|
||||||
|
|
||||||
http.HandleFunc("/ciconfig", func(w http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/ciconfig", func(w http.ResponseWriter, r *http.Request) {
|
||||||
log.Println("Incoming Request!")
|
|
||||||
if r.Method != http.MethodPost {
|
if r.Method != http.MethodPost {
|
||||||
w.WriteHeader(http.StatusMethodNotAllowed)
|
w.WriteHeader(http.StatusMethodNotAllowed)
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user