This commit is contained in:
Chris Lu 2021-09-02 23:09:24 -07:00
parent 958125bd02
commit bca4a9de78
2 changed files with 3 additions and 2 deletions

View file

@ -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)

View file

@ -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 = ""
)