Skip to content

Instantly share code, notes, and snippets.

@robrasmussen
Created April 28, 2015 21:13
Show Gist options
  • Save robrasmussen/25e296e9cf83af01ade8 to your computer and use it in GitHub Desktop.
Save robrasmussen/25e296e9cf83af01ade8 to your computer and use it in GitHub Desktop.
Unify UserAgent for API and webviews.
// 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