mirror of
https://github.com/luscis/openlan.git
synced 2025-10-17 22:40:38 +08:00
fix: http: connect timeout.
This commit is contained in:
@@ -24,13 +24,11 @@ import (
|
||||
)
|
||||
|
||||
func NotFound(w http.ResponseWriter, r *http.Request) {
|
||||
libol.Info("NotFound %s %s", r.Method, r.URL.Path)
|
||||
http.Error(w, "oops!!!", http.StatusNotFound)
|
||||
http.Error(w, "Oops!", http.StatusNotFound)
|
||||
}
|
||||
|
||||
func NotAllowed(w http.ResponseWriter, r *http.Request) {
|
||||
libol.Info("NotAllowed %s %s", r.Method, r.URL.Path)
|
||||
http.Error(w, "oops!!!", http.StatusMethodNotAllowed)
|
||||
http.Error(w, "Oops!", http.StatusMethodNotAllowed)
|
||||
}
|
||||
|
||||
type Http struct {
|
||||
|
Reference in New Issue
Block a user