do not send 404 twice

This commit is contained in:
Yasuhiro Matsumoto
2023-08-22 16:53:25 +09:00
parent 76828e6223
commit 7f4473b91d

View File

@@ -70,9 +70,10 @@ func Start(port string) {
default:
ctx.String(http.StatusNotFound, http.StatusText(http.StatusNotFound))
}
} else {
ctx.String(http.StatusNotFound, http.StatusText(http.StatusNotFound))
}
ctx.String(http.StatusNotFound, http.StatusText(http.StatusNotFound))
return
})