mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Add version as part of Server: header (#7100)
This was agreed after discussing with @abperiasamy, we borrowed the idea from Apache's own documentation.
This commit is contained in:
parent
e0d22359e7
commit
8766c5eb22
@ -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…
Reference in New Issue
Block a user