mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
Remove Minio server arch, version from Server:
header (#7074)
This commit is contained in:
parent
309975d477
commit
e8791ae274
@ -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", globalServerUserAgent)
|
w.Header().Set("Server", "Minio")
|
||||||
// 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 != "" {
|
||||||
|
@ -20,7 +20,6 @@ import (
|
|||||||
"crypto/x509"
|
"crypto/x509"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
isatty "github.com/mattn/go-isatty"
|
isatty "github.com/mattn/go-isatty"
|
||||||
@ -162,9 +161,6 @@ var (
|
|||||||
// File to log HTTP request/response headers and body.
|
// File to log HTTP request/response headers and body.
|
||||||
globalHTTPTraceFile *os.File
|
globalHTTPTraceFile *os.File
|
||||||
|
|
||||||
// Minio server user agent string.
|
|
||||||
globalServerUserAgent = "Minio/" + ReleaseTag + " (" + runtime.GOOS + "; " + runtime.GOARCH + ")"
|
|
||||||
|
|
||||||
globalEndpoints EndpointList
|
globalEndpoints EndpointList
|
||||||
|
|
||||||
// Global server's network statistics
|
// Global server's network statistics
|
||||||
@ -358,7 +354,6 @@ func getGlobalInfo() (globalInfo map[string]interface{}) {
|
|||||||
"isEnvRegion": globalIsEnvRegion,
|
"isEnvRegion": globalIsEnvRegion,
|
||||||
"isSSL": globalIsSSL,
|
"isSSL": globalIsSSL,
|
||||||
"serverRegion": globalServerRegion,
|
"serverRegion": globalServerRegion,
|
||||||
"serverUserAgent": globalServerUserAgent,
|
|
||||||
// Add more relevant global settings here.
|
// Add more relevant global settings here.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -82,7 +82,6 @@ func (target *WebhookTarget) Send(eventData event.Event) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// req.Header.Set("User-Agent", globalServerUserAgent)
|
|
||||||
req.Header.Set("Content-Type", "application/json")
|
req.Header.Set("Content-Type", "application/json")
|
||||||
|
|
||||||
resp, err := target.httpClient.Do(req)
|
resp, err := target.httpClient.Do(req)
|
||||||
|
Loading…
Reference in New Issue
Block a user