starpit closed pull request #118: add User-Agent to request header URL: https://github.com/apache/incubator-openwhisk-client-js/pull/118
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/lib/client.js b/lib/client.js index 900173c..48723e3 100644 --- a/lib/client.js +++ b/lib/client.js @@ -124,6 +124,7 @@ class Client { url: this.pathUrl(path), rejectUnauthorized: !this.options.ignoreCerts, headers: { + 'User-Agent': (options && options['User-Agent']) || 'openwhisk-client-js', Authorization: this.authHeader() } }, options) ---------------------------------------------------------------- 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