aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-11-08 17:47:29 -0800
committerChris Lu <chris.lu@gmail.com>2021-11-08 17:47:56 -0800
commit59d1435d652812a8505e8924ebafc7ccab437cb5 (patch)
tree63f3d9a92dfaf7824a542411539759ced8006b78
parent5c99b8acc3b55647eca895124d293b1c8cd0d125 (diff)
downloadseaweedfs-59d1435d652812a8505e8924ebafc7ccab437cb5.tar.xz
seaweedfs-59d1435d652812a8505e8924ebafc7ccab437cb5.zip
s3: avoid possible attacks by version
-rw-r--r--weed/s3api/stats.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/s3api/stats.go b/weed/s3api/stats.go
index b667b32a0..973d8c0eb 100644
--- a/weed/s3api/stats.go
+++ b/weed/s3api/stats.go
@@ -2,7 +2,6 @@ package s3api
import (
stats_collect "github.com/chrislusf/seaweedfs/weed/stats"
- "github.com/chrislusf/seaweedfs/weed/util"
"net/http"
"strconv"
"time"
@@ -28,7 +27,7 @@ func (r *StatusRecorder) Flush() {
func track(f http.HandlerFunc, action string) http.HandlerFunc {
return func(w http.ResponseWriter, r *http.Request) {
- w.Header().Set("Server", "SeaweedFS S3 "+util.VERSION)
+ w.Header().Set("Server", "SeaweedFS S3")
recorder := NewStatusResponseWriter(w)
start := time.Now()
f(recorder, r)