Created
April 28, 2015 21:13
-
-
Save robrasmussen/25e296e9cf83af01ade8 to your computer and use it in GitHub Desktop.
Unify UserAgent for API and webviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make webviews share the same User-Agent as the API client. | |
NSUserDefaults.standardUserDefaults().registerDefaults(["UserAgent": Alamofire.Manager.defaultHTTPHeaders["User-Agent"]!]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment