From bca4a9de783375f451658b7a9361baa407aa2f2e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 2 Sep 2021 23:09:24 -0700 Subject: [PATCH] simplify --- weed/remote_storage/s3/s3_storage_client.go | 2 +- weed/util/constants.go | 3 ++- 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 = "" )