rabbah closed pull request #344: add OS and CPU architecture to user agent header URL: https://github.com/apache/incubator-openwhisk-cli/pull/344
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/commands/commands.go b/commands/commands.go index 0e5f1158..6a7a070c 100644 --- a/commands/commands.go +++ b/commands/commands.go @@ -21,6 +21,7 @@ import ( "errors" "net/http" "os" + "runtime" "github.com/apache/incubator-openwhisk-cli/wski18n" "github.com/apache/incubator-openwhisk-client-go/whisk" @@ -64,7 +65,7 @@ func SetupClientConfig(cmd *cobra.Command, args []string) error { Version: Properties.APIVersion, Insecure: Flags.Global.Insecure, Host: Properties.APIHost, - UserAgent: UserAgent + "/1.0 (" + Properties.CLIVersion + ")", + UserAgent: UserAgent + "/1.0 (" + Properties.CLIVersion + ") " + runtime.GOOS + " " + runtime.GOARCH, AdditionalHeaders: AdditionalHeaders, } ---------------------------------------------------------------- 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