Add version as part of Server: header (#7100)

This was agreed after discussing with @abperiasamy, we
borrowed the idea from Apache's own documentation.
master
Harshavardhana 6 years ago committed by kannappanr
parent e0d22359e7
commit 8766c5eb22
  1. 2
      cmd/api-headers.go

@ -36,7 +36,7 @@ func mustGetRequestID(t time.Time) string {
// Write http common headers
func setCommonHeaders(w http.ResponseWriter) {
w.Header().Set("Server", "Minio")
w.Header().Set("Server", "Minio/"+ReleaseTag)
// 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 != "" {

Loading…
Cancel
Save