Remove Minio server arch, version from Server: header (#7074)

This commit is contained in:
Harshavardhana
2019-01-15 13:16:11 +05:30
committed by Nitish Tiwari
parent 309975d477
commit e8791ae274
3 changed files with 1 additions and 7 deletions

View File

@@ -36,7 +36,7 @@ func mustGetRequestID(t time.Time) string {
// Write http common headers
func setCommonHeaders(w http.ResponseWriter) {
w.Header().Set("Server", globalServerUserAgent)
w.Header().Set("Server", "Minio")
// Set `x-amz-bucket-region` only if region is set on the server
// by default minio uses an empty region.
if region := globalServerConfig.GetRegion(); region != "" {