Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
chore: set appium-inspector as UA to match with master (#1761)
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa authored Apr 9, 2021
1 parent 3639c0d commit 348d7cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/override/override_http.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion app/override/override_https.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 348d7cf

Please sign in to comment.