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

Commit

Permalink
Merge branch '1.20' of github.com:appium/appium-desktop into 1.20
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Apr 9, 2021
2 parents 8cebd87 + 348d7cf commit 9a1a7f9
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 9a1a7f9

Please sign in to comment.