mirror of
https://github.com/minio/minio.git
synced 2024-12-25 06:35:56 -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
|
// Write http common headers
|
||||||
func setCommonHeaders(w http.ResponseWriter) {
|
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
|
// Set `x-amz-bucket-region` only if region is set on the server
|
||||||
// by default minio uses an empty region.
|
// by default minio uses an empty region.
|
||||||
if region := globalServerConfig.GetRegion(); region != "" {
|
if region := globalServerConfig.GetRegion(); region != "" {
|
||||||
|
Loading…
Reference in New Issue
Block a user