fix: accidental write twice
This commit is contained in:
@@ -26,7 +26,6 @@ func newRouter(handler *handler) http.Handler {
|
|||||||
h.ServeHTTP(w, r)
|
h.ServeHTTP(w, r)
|
||||||
} else {
|
} else {
|
||||||
middlewares(handler, http.HandlerFunc(handler.NotFound)).ServeHTTP(w, r)
|
middlewares(handler, http.HandlerFunc(handler.NotFound)).ServeHTTP(w, r)
|
||||||
http.Error(w, "Boo", http.StatusNotFound)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user