Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@demonzym
Created May 30, 2014 02:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save demonzym/0d0b9ff1baabb74acc69 to your computer and use it in GitHub Desktop.
Save demonzym/0d0b9ff1baabb74acc69 to your computer and use it in GitHub Desktop.
it seems to need com.squareup.okhttp.OkUrlFactory.java, and change the createConnection(URL url) like this:
@Override protected HttpURLConnection createConnection(URL url) throws IOException {
return new OkUrlFactory(client).open(url);
}
differences of new version or what?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment