fix(upload): add missing return
All checks were successful
build / Go-Build (push) Successful in 25s
All checks were successful
build / Go-Build (push) Successful in 25s
This commit is contained in:
@@ -16,6 +16,7 @@ func PrepareHTTP() {
|
|||||||
registerAuthorized("/svg/", func(w http.ResponseWriter, r *http.Request) {
|
registerAuthorized("/svg/", func(w http.ResponseWriter, r *http.Request) {
|
||||||
if r.Method != "POST" {
|
if r.Method != "POST" {
|
||||||
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
|
http.Error(w, "Method not allowed", http.StatusMethodNotAllowed)
|
||||||
|
return
|
||||||
}
|
}
|
||||||
routes.CreateSVG(w, *r)
|
routes.CreateSVG(w, *r)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user