We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a3e653 commit 19dad16Copy full SHA for 19dad16
lib/logic/api/helper.js
@@ -12,7 +12,11 @@ const sendHttpRequest = async (httpOptions, authContext) => {
12
finalAuthContext = authContext;
13
}
14
15
- const finalOptions = _.assignIn(httpOptions, finalAuthContext.prepareHttpOptions(), { json: true });
+ const finalOptions = _.merge(
16
+ httpOptions,
17
+ finalAuthContext.prepareHttpOptions(),
18
+ { json: true, headers: { 'User-Agent': 'codefresh-cli' } },
19
+ );
20
debug('Sending http request:\n%O', finalOptions);
21
let response;
22
try {
0 commit comments