fix: invalid user-agent release tag for mc (#3575)

fixes #3529
This commit is contained in:
Harshavardhana
2021-01-20 09:51:52 -08:00
committed by GitHub
parent 1c3e6516f0
commit f73987fc34
3 changed files with 2 additions and 5 deletions
-1
View File
@@ -191,7 +191,6 @@ type Config struct {
HostURL string
AppName string
AppVersion string
AppComments []string
Debug bool
Insecure bool
Lookup minio.BucketLookupType
+1 -1
View File
@@ -300,7 +300,7 @@ func (mj *mirrorJob) doRemove(ctx context.Context, sURLs URLs) URLs {
if pErr != nil {
return sURLs.WithError(pErr)
}
clnt.AddUserAgent(uaMirrorAppName, Version)
clnt.AddUserAgent(uaMirrorAppName, ReleaseTag)
contentCh := make(chan *ClientContent, 1)
contentCh <- &ClientContent{URL: *newClientURL(sURLs.TargetContent.URL.Path)}
close(contentCh)
+1 -3
View File
@@ -27,7 +27,6 @@ import (
"os"
"path/filepath"
"regexp"
"runtime"
"sort"
"strconv"
"strings"
@@ -138,8 +137,7 @@ func NewS3Config(urlStr string, aliasCfg *aliasConfigV10) *Config {
s3Config := new(Config)
s3Config.AppName = filepath.Base(os.Args[0])
s3Config.AppVersion = Version
s3Config.AppComments = []string{os.Args[0], runtime.GOOS, runtime.GOARCH}
s3Config.AppVersion = ReleaseTag
s3Config.Debug = globalDebug
s3Config.Insecure = globalInsecure