chore: fix sabotage spelling in nolint comments (#7892)
Signed-off-by: futurehua <futurehua@outlook.com>pull/7896/head
parent
986753a7c6
commit
93c0721156
|
|
@ -836,7 +836,7 @@ func AdminAPIRequest(adminAddr, method, uri string, headers http.Header, body io
|
|||
},
|
||||
}
|
||||
|
||||
resp, err := client.Do(req) //nolint:gosec // the only SSRF here would be self-sabatoge I think
|
||||
resp, err := client.Do(req) //nolint:gosec // the only SSRF here would be self-sabotage I think
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("performing request: %v", err)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -246,7 +246,7 @@ func (s StaticResponse) ServeHTTP(w http.ResponseWriter, r *http.Request, next H
|
|||
|
||||
// write response body
|
||||
if statusCode != http.StatusEarlyHints && body != "" {
|
||||
fmt.Fprint(w, body) //nolint:gosec // no XSS unless you sabatoge your own config
|
||||
fmt.Fprint(w, body) //nolint:gosec // no XSS unless you sabotage your own config
|
||||
}
|
||||
|
||||
// continue handling after Early Hints as they are not the final response
|
||||
|
|
|
|||
Loading…
Reference in New Issue