Skip to content

Commit

Permalink
User agent anonymized.
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueAndi committed Apr 6, 2021
1 parent 85cfe25 commit f80d0b0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,11 @@ niuCloudConnector.Client = function() {
/** Accept language, used in HTTP request header. */
this._acceptLanguage = "en-US";

/** The NIU app version, which the niu-cloud-connector is derrived from. */
this._niuAppVersion = "4.6.2";

/** User agent, used in HTTP request header. */
this._userAgent = "manager/4.6.2 (iPhone; iOS 14.4; Scale/3.00);deviceName=iPhone;model=iPhone 11 Pro;ostype=iOS;clientIdentifier=Overseas";
this._userAgent = "manager/" + this._niuAppVersion + " (android; Unknown);brand=Unknown;model=Unknown;clientIdentifier=Overseas;lang=" + this._acceptLanguage;
};

/**
Expand Down

0 comments on commit f80d0b0

Please sign in to comment.