mirror of https://github.com/minio/minio.git
Fix staticcheck QF1008: remove explicit embedded field access
This commit is contained in:
parent
5871494b3a
commit
bce7b80f50
|
@ -678,7 +678,7 @@ func configHasWildcard() bool {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *corsCredentialsWrapper) fixCORSCredentialsViolation() {
|
func (w *corsCredentialsWrapper) fixCORSCredentialsViolation() {
|
||||||
hdr := w.ResponseWriter.Header()
|
hdr := w.Header()
|
||||||
|
|
||||||
// Only run if CORS actually ran
|
// Only run if CORS actually ran
|
||||||
if hdr.Get("Access-Control-Allow-Origin") == "" {
|
if hdr.Get("Access-Control-Allow-Origin") == "" {
|
||||||
|
|
Loading…
Reference in New Issue