mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-09-17 21:52:38 +00:00
fix(quickproxy): use http.NotFoundHandler per golangci-lint gocritic
This commit is contained in:
@@ -154,7 +154,7 @@ func newReverseProxy(target *url.URL, timeout time.Duration) *httputil.ReversePr
|
||||
// starts serving requests.
|
||||
func (s *Service) Handler(fallback http.Handler) http.Handler {
|
||||
if fallback == nil {
|
||||
fallback = http.HandlerFunc(http.NotFound)
|
||||
fallback = http.NotFoundHandler()
|
||||
}
|
||||
|
||||
for i := range s.rules {
|
||||
|
||||
Reference in New Issue
Block a user