mirror of
https://github.com/square/okhttp.git
synced 2026-01-25 16:01:38 +03:00
3.5 KiB
3.5 KiB
Change Log
Version 1.3.0 (2014-01-11)
- New: Support for "PATCH" HTTP method in client and MockWebServer.
- Fix: Drop
Content-Lengthheader when redirected from POST to GET. - Fix: Correctly read cached header entries with malformed header names.
- Fix: Do not directly support any authentication schemes other than "Basic".
- Fix: Respect read timeouts on recycled connections.
- Fix: Transmit multiple cookie values as a single header with delimiter.
- Fix: Ensure
nullis never returned from a connection'sgetHeaderFields(). - Fix: Persist proper
Content-Encodingheader to cache for GZip responses. - Fix: Eliminate rare race condition in SPDY streams that would prevent connection reuse.
- Fix: Change HTTP date formats to UTC to conform to RFC2616 section 3.3.
- Fix: Support SPDY header blocks with trailing bytes.
- Fix: Allow
;as separator forCache-Controlheader. - Fix: Correct bug where HTTPS POST requests were always automatically buffered.
- Fix: Honor read timeout when parsing SPDY headers.
Version 1.2.1 (2013-08-23)
- Resolve issue with 'jar-with-dependencies' artifact creation.
- Fix: Support empty SPDY header values.
Version 1.2.0 (2013-08-11)
-
New APIs on OkHttpClient to set default timeouts for connect and read.
-
Fix bug when caching SPDY responses.
-
Fix a bug with SPDY plus half-closed streams. (thanks kwuollett)
-
Fix a bug in
Content-Lengthreporting for gzipped streams in the Apache HTTP client adapter. (thanks kwuollett) -
Work around the Alcatel
getByInetAddressbug (thanks k.kocel) -
Be more aggressive about testing pooled sockets before reuse. (thanks warpspin)
-
Include
Content-TypeandContent-Encodingin the Apache HTTP client adapter. (thanks kwuollett) -
Add a media type class to OkHttp.
-
Change custom header prefix:
X-Android-Sent-Millis is now OkHttp-Sent-Millis X-Android-Received-Millis is now OkHttp-Received-Millis X-Android-Response-Source is now OkHttp-Response-Source X-Android-Selected-Transport is now OkHttp-Selected-Transport -
Improve cache invalidation for POST-like requests.
-
Bring MockWebServer into OkHttp and teach it SPDY.
Version 1.1.1 (2013-06-23)
- Fix: ClassCastException when caching responses that were redirected from HTTP to HTTPS.
Version 1.1.0 (2013-06-15)
- Fix: Connection reuse was broken for most HTTPS connections due to a bug in the way the hostname verifier was selected.
- Fix: Locking bug in SpdyConnection.
- Fix: Ignore null header values (for compatibility with HttpURLConnection).
- Add URLStreamHandlerFactory support so that
URL.openConnection()uses OkHttp. - Expose the transport ("http/1.1", "spdy/3", etc.) via magic request headers.
Use
X-Android-Transportsto write the preferred transports andX-Android-Selected-Transportto read the negotiated transport.
Version 1.0.2 (2013-05-11)
- Fix: Remove use of Java 6-only APIs.
- Fix: Properly handle exceptions from
NetworkInterfacewhen querying MTU. - Fix: Ensure MTU has a reasonable default and upper-bound.
Version 1.0.1 (2013-05-06)
- Correct casing of SSL in method names (
getSslSocketFactory/setSslSocketFactory).
Version 1.0.0 (2013-05-06)
Initial release.