Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
lint
  • Loading branch information
jiuker committed Feb 12, 2025
1 parent 4350d40 commit 212b74d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/client-s3_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,11 @@ func (h stsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Header().Set("Content-Type", "application/xml")
w.Header().Set("Server", "MinIO")
w.Write(response)
return
} else {
response := []byte("<ErrorResponse xmlns=\"https://sts.amazonaws.com/doc/2011-06-15/\"><Error><Type></Type><Code>AccessDenied</Code><Message>Access denied: Invalid Token</Message></Error><RequestId></RequestId></ErrorResponse>")
w.Header().Set("Content-Length", strconv.Itoa(len(response)))
w.Header().Set("Content-Type", "application/xml")
w.Write(response)
return
}
}
}
Expand Down

0 comments on commit 212b74d

Please sign in to comment.