drcariel closed pull request #95: add OS and CPU architecture to user agent header URL: https://github.com/apache/incubator-openwhisk-client-go/pull/95
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/whisk/client.go b/whisk/client.go index 58a29b76..54e2b481 100644 --- a/whisk/client.go +++ b/whisk/client.go @@ -31,6 +31,7 @@ import ( "net/url" "reflect" "regexp" + "runtime" "strings" "time" ) @@ -148,7 +149,7 @@ func NewClient(httpClient *http.Client, config_input *Config) (*Client, error) { } if len(config.UserAgent) == 0 { - config.UserAgent = "OpenWhisk-Go-Client" + config.UserAgent = "OpenWhisk-Go-Client " + runtime.GOOS + " " + runtime.GOARCH } c := &Client{ ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services