Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 11, 08:30 UTC
chore: fix sabotage spelling in nolint comments (#7892)
Signed-off-by: futurehua <futurehua@outlook.com>
futurehua committed
Jul 18, 2026 at 16:14 UTC
93c0721156e5fefa2937f66875d3bbfce7a8f6c4
2 files changed
+2
-2
cmd/commandfuncs.go
+1
-1
@@ -836,7 +836,7 @@ func AdminAPIRequest(adminAddr, method, uri string, headers http.Header, body io
836
},
837
}
838
839
- resp, err := client.Do(req) //nolint:gosec // the only SSRF here would be self-sabatoge I think
839
+ resp, err := client.Do(req) //nolint:gosec // the only SSRF here would be self-sabotage I think
840
if err != nil {
841
return nil, fmt.Errorf("performing request: %v", err)
842
}
modules/caddyhttp/staticresp.go
+1
-1
@@ -246,7 +246,7 @@ func (s StaticResponse) ServeHTTP(w http.ResponseWriter, r *http.Request, next H
246
247
// write response body
248
if statusCode != http.StatusEarlyHints && body != "" {
249
- fmt.Fprint(w, body) //nolint:gosec // no XSS unless you sabatoge your own config
249
+ fmt.Fprint(w, body) //nolint:gosec // no XSS unless you sabotage your own config
250
}
251
252
// continue handling after Early Hints as they are not the final response