Skip to content

Commit

Permalink
Merge pull request #137 from carolynvs/standardize-useragent
Browse files Browse the repository at this point in the history
Standardize UserAgent header
  • Loading branch information
carolynvs authored Feb 6, 2017
2 parents 79252a3 + ba0f42d commit 269c961
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion common/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ import "github.com/getcarina/carina/version"

// BuildUserAgent generates the user agent for the Carina client
func BuildUserAgent() string {
return "getcarina/carina " + version.Version
return " carina/" + version.Version
}
6 changes: 3 additions & 3 deletions glide.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion glide.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import:
subpackages:
- spew
- package: github.com/getcarina/libcarina
version: 2.0.0-beta.2
version: 2.0.0
repo: https://github.com/getcarina/libcarina.git
vcs: git
- package: github.com/getcarina/libmakeswarm
Expand Down
2 changes: 1 addition & 1 deletion make-coe/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func (account *Account) Authenticate() (*libcarina.CarinaClient, error) {

// Apply our http client customizations
carinaClient.Client = common.NewHTTPClient()
carinaClient.UserAgent = common.BuildUserAgent()
carinaClient.UserAgent += common.BuildUserAgent()

// Cache data looked up from the service catalog
account.token = carinaClient.Token
Expand Down

0 comments on commit 269c961

Please sign in to comment.