1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-17 08:42:25 +03:00

Merge pull request #1687 from peknudsen/CallConstructorPrivateToProtected

Revert Call to a protected class instead of package-private
This commit is contained in:
Jesse Wilson
2015-06-04 21:27:50 -04:00

View File

@@ -44,7 +44,7 @@ public class Call {
Request originalRequest;
HttpEngine engine;
Call(OkHttpClient client, Request originalRequest) {
protected Call(OkHttpClient client, Request originalRequest) {
// Copy the client. Otherwise changes (socket factory, redirect policy,
// etc.) may incorrectly be reflected in the request when it is executed.
this.client = client.copyWithDefaults();