mirror of
https://github.com/square/okhttp.git
synced 2026-01-25 16:01:38 +03:00
Fix a bug where HTTPS POSTS were always buffered.
https://code.google.com/p/android/issues/detail?id=64348
(cherry picked from commit d451e93994)
Conflicts:
okhttp/src/main/java/com/squareup/okhttp/internal/http/HttpsURLConnectionImpl.java
This commit is contained in:
@@ -342,6 +342,18 @@ public final class HttpsURLConnectionImpl extends HttpsURLConnection {
|
||||
return delegate.client.getSslSocketFactory();
|
||||
}
|
||||
|
||||
@Override public void setFixedLengthStreamingMode(long contentLength) {
|
||||
delegate.setFixedLengthStreamingMode(contentLength);
|
||||
}
|
||||
|
||||
@Override public long getContentLengthLong() {
|
||||
return delegate.getContentLengthLong();
|
||||
}
|
||||
|
||||
@Override public long getHeaderFieldLong(String field, long defaultValue) {
|
||||
return delegate.getHeaderFieldLong(field, defaultValue);
|
||||
}
|
||||
|
||||
private final class HttpUrlConnectionDelegate extends HttpURLConnectionImpl {
|
||||
private HttpUrlConnectionDelegate(URL url, OkHttpClient client) {
|
||||
super(url, client);
|
||||
|
||||
Reference in New Issue
Block a user