Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add support for user agent from AFHTTPClient #33

Closed
wants to merge 1 commit into from

2 participants

@yfw

The user agent in the AFHTTPClient library looks like "iOS x.x.x".

@yfw yfw Add support for user agent from AFHTTPClient
The user agent in the AFHTTPClient library looks like "iOS x.x.x"
055f21c
@3rd-Eden
Owner

Do you have an example user agent string for this?

@yfw

Here is a sample user agent string:

Boxed/1574243 (iPhone; iOS 6.1.4; Scale/2.00)

@3rd-Eden 3rd-Eden closed this in 266481d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 17, 2013
  1. @yfw

    Add support for user agent from AFHTTPClient

    yfw authored
    The user agent in the AFHTTPClient library looks like "iOS x.x.x"
This page is out of date. Refresh to see the latest.
Showing with 8 additions and 1 deletion.
  1. +8 −1 lib/regexps.js
View
9 lib/regexps.js
@@ -2266,5 +2266,12 @@ parser[2] = 0;
parser[3] = 0;
parser[4] = 0;
exports.os[66] = parser;
+parser = Object.create(null);
+parser[0] = new RegExp("(iOS) (\\d+)\\.(\\d+)(?:\\.(\\d+))?");
+parser[1] = "iOS";
+parser[2] = 0;
+parser[3] = 0;
+parser[4] = 0;
+exports.os[67] = parser;
-exports.os.length = 67;
+exports.os.length = 68;
Something went wrong with that request. Please try again.