1
0
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:
jwilson
2014-01-02 15:43:10 -05:00
committed by Jake Wharton
parent 41b1a0f92a
commit daa3592041

View File

@@ -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);