Browse Source

simplify

pull/2321/head
Chris Lu 3 years ago
parent
commit
bca4a9de78
  1. 2
      weed/remote_storage/s3/s3_storage_client.go
  2. 3
      weed/util/constants.go

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

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

Loading…
Cancel
Save