aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-09-02 23:09:24 -0700
committerChris Lu <chris.lu@gmail.com>2021-09-02 23:09:24 -0700
commitbca4a9de783375f451658b7a9361baa407aa2f2e (patch)
tree2e00ca183a6ebcf78a6554f8c27e24549a917135
parent958125bd02917c3e627a845d7e60da90a596fc17 (diff)
downloadseaweedfs-bca4a9de783375f451658b7a9361baa407aa2f2e.tar.xz
seaweedfs-bca4a9de783375f451658b7a9361baa407aa2f2e.zip
simplify
-rw-r--r--weed/remote_storage/s3/s3_storage_client.go2
-rw-r--r--weed/util/constants.go3
2 files changed, 3 insertions, 2 deletions
diff --git a/weed/remote_storage/s3/s3_storage_client.go b/weed/remote_storage/s3/s3_storage_client.go
index 8a764e67b..ec1c6d7bd 100644
--- a/weed/remote_storage/s3/s3_storage_client.go
+++ b/weed/remote_storage/s3/s3_storage_client.go
@@ -51,7 +51,7 @@ func (s s3RemoteStorageMaker) Make(conf *remote_pb.RemoteConf) (remote_storage.R
sess.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
}
sess.Handlers.Build.PushBack(func(r *request.Request) {
- r.HTTPRequest.Header.Set("User-Agent", "SeaweedFS/"+util.VERSION)
+ r.HTTPRequest.Header.Set("User-Agent", "SeaweedFS/"+util.VERSION_NUMBER)
})
sess.Handlers.Build.PushFront(skipSha256PayloadSigning)
client.conn = s3.New(sess)
diff --git a/weed/util/constants.go b/weed/util/constants.go
index 08705585f..d1c8e3d82 100644
--- a/weed/util/constants.go
+++ b/weed/util/constants.go
@@ -5,7 +5,8 @@ import (
)
var (
- VERSION = fmt.Sprintf("%.02f (%s)", 2.65, sizeLimit)
+ VERSION_NUMBER = fmt.Sprintf("%.02f", 2.65)
+ VERSION = sizeLimit + VERSION_NUMBER
COMMIT = ""
)