diff --git a/app/override/override_http.js b/app/override/override_http.js index a03a8568a..29ea1e4a6 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'] = `${wdPackageJson.name}/${wdPackageJson.version} ${packageJson.name}/${packageJson.version}`; + options.headers['User-Agent'] = `admc/${wdPackageJson.name}/${wdPackageJson.version} ${packageJson.name}/${packageJson.version}`; return originalHttpRequest(options, function (res) { if (callback) { diff --git a/app/override/override_https.js b/app/override/override_https.js index 07361def8..9b502a585 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'] = `${wdPackageJson.name}/${wdPackageJson.version} ${packageJson.name}/${packageJson.version}`; + options.headers['User-Agent'] = `admc/${wdPackageJson.name}/${wdPackageJson.version} ${packageJson.name}/${packageJson.version}`; return originalHttpsRequest(options, function (res) { if (callback) {