dubeejw commented on a change in pull request #2591: User-Agent CLI/version 
header
URL: 
https://github.com/apache/incubator-openwhisk/pull/2591#discussion_r135813064
 
 

 ##########
 File path: tools/cli/go-whisk/whisk/client.go
 ##########
 @@ -204,6 +210,8 @@ func (c *Client) NewRequest(method, urlStr string, body 
interface{}, includeName
         return nil, werr
     }
 
+    req.Header.Add("User-Agent", c.Config.UserAgent + "/" + 
c.Config.CLIVersion)
 
 Review comment:
   Probably better to move CLIVersion logic into go-whisk-cli and just set the 
agent to `c.Config.UserAgent`.
 
----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to