Fix staticcheck QF1008: remove explicit embedded field access

This commit is contained in:
max-ts0gt 2025-07-25 00:35:56 +09:00
parent 5871494b3a
commit bce7b80f50
1 changed files with 1 additions and 1 deletions

View File

@ -678,7 +678,7 @@ func configHasWildcard() bool {
}
func (w *corsCredentialsWrapper) fixCORSCredentialsViolation() {
hdr := w.ResponseWriter.Header()
hdr := w.Header()
// Only run if CORS actually ran
if hdr.Get("Access-Control-Allow-Origin") == "" {