diff --git a/app/override/override_http.js b/app/override/override_http.js index 29ea1e4a6..7c519f77d 100644 --- a/app/override/override_http.js +++ b/app/override/override_http.js @@ -5,7 +5,7 @@ export const overrideHttpUserAgent = () => { originalHttpRequest = http.request; http.request = function (options, callback) { - options.headers['User-Agent'] = `admc/${wdPackageJson.name}/${wdPackageJson.version} ${packageJson.name}/${packageJson.version}`; + options.headers['User-Agent'] = `admc/${wdPackageJson.name}/${wdPackageJson.version} appium-inspector/${packageJson.version}`; return originalHttpRequest(options, function (res) { if (callback) { diff --git a/app/override/override_https.js b/app/override/override_https.js index 9b502a585..1a2045393 100644 --- a/app/override/override_https.js +++ b/app/override/override_https.js @@ -5,7 +5,7 @@ export const overrideHttpsUserAgent = () => { originalHttpsRequest = https.request; https.request = function (options, callback) { - options.headers['User-Agent'] = `admc/${wdPackageJson.name}/${wdPackageJson.version} ${packageJson.name}/${packageJson.version}`; + options.headers['User-Agent'] = `admc/${wdPackageJson.name}/${wdPackageJson.version} appium-inspector/${packageJson.version}`; return originalHttpsRequest(options, function (res) { if (callback) {