diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fe504f25..8eecd5292 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,19 @@ Change Log ========== +## Version 4.3.1 + +_2019-01-07_ + + * Fix: Don't crash with a `NullPointerException` when a web socket is closed before it connects. + This regression was introduced in OkHttp 4.3.0. + * Fix: Don't crash with an `IllegalArgumentException` when using custom trust managers on Android + 10. Android uses reflection to look up a magic `checkServerTrusted()` method and we didn't + have it. + * Fix: Explicitly specify the remote server name when making HTTPS connections on Android 5. In + 4.3.0 we introduced a regression where server name indication (SNI) was broken on Android 5. + + ## Version 4.3.0 _2019-12-31_ diff --git a/README.md b/README.md index c1f54b43a..9886cb495 100644 --- a/README.md +++ b/README.md @@ -99,10 +99,10 @@ Releases Our [change log][changelog] has release history. -The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/4.3.0/jar). +The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/okhttp/4.3.1/jar). ```kotlin -implementation("com.squareup.okhttp3:okhttp:4.3.0") +implementation("com.squareup.okhttp3:okhttp:4.3.1") ``` Snapshot builds are [available][snap]. [R8 and ProGuard][r8_proguard] rules are available. @@ -113,10 +113,10 @@ MockWebServer OkHttp includes a library for testing HTTP, HTTPS, and HTTP/2 clients. -The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/4.3.0/jar). +The latest release is available on [Maven Central](https://search.maven.org/artifact/com.squareup.okhttp3/mockwebserver/4.3.1/jar). ```kotlin -testImplementation("com.squareup.okhttp3:mockwebserver:4.3.0") +testImplementation("com.squareup.okhttp3:mockwebserver:4.3.1") ``` License diff --git a/android-test/README.md b/android-test/README.md index 4cb360b35..9c3e79bf3 100644 --- a/android-test/README.md +++ b/android-test/README.md @@ -39,4 +39,4 @@ $ ANDROID_SDK_ROOT=/Users/myusername/Library/Android/sdk ./gradlew :android-test BUILD SUCCESSFUL in 1m 30s 63 actionable tasks: 61 executed, 2 up-to-date -``` \ No newline at end of file +``` diff --git a/docs/releasing.md b/docs/releasing.md index b19b2b8ea..65a10bc63 100644 --- a/docs/releasing.md +++ b/docs/releasing.md @@ -83,6 +83,9 @@ Cutting a Release sed -i "" \ "s/\"com.squareup.okhttp3:\([^\:]*\):[^\"]*\"/\"com.squareup.okhttp3:\1:$RELEASE_VERSION\"/g" \ `find . -name "README.md"` + sed -i "" \ + "s/\/com.squareup.okhttp3\/\([^\:]*\)\/[^\/]*\//\/com.squareup.okhttp3\/\1\/$RELEASE_VERSION\//g" \ + `find . -name "README.md"` ./gradlew clean uploadArchives ``` diff --git a/mockwebserver/README.md b/mockwebserver/README.md index 591904f9b..f162b86df 100644 --- a/mockwebserver/README.md +++ b/mockwebserver/README.md @@ -142,7 +142,7 @@ server.setDispatcher(dispatcher); ### Download ```kotlin -testImplementation("com.squareup.okhttp3:mockwebserver:4.3.0") +testImplementation("com.squareup.okhttp3:mockwebserver:4.3.1") ``` ### License diff --git a/okhttp-brotli/README.md b/okhttp-brotli/README.md index 2e8c78c20..1421ee1ed 100644 --- a/okhttp-brotli/README.md +++ b/okhttp-brotli/README.md @@ -14,7 +14,7 @@ OkHttpClient client = new OkHttpClient.Builder() ``` ```kotlin -implementation("com.squareup.okhttp3:okhttp-brotli:4.3.0") +implementation("com.squareup.okhttp3:okhttp-brotli:4.3.1") ``` [1]: https://github.com/google/brotli diff --git a/okhttp-dnsoverhttps/README.md b/okhttp-dnsoverhttps/README.md index c2d0fca13..5ebb6ceae 100644 --- a/okhttp-dnsoverhttps/README.md +++ b/okhttp-dnsoverhttps/README.md @@ -7,5 +7,5 @@ API is not considered stable and may change at any time. ### Download ```kotlin -testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.3.0") +testImplementation("com.squareup.okhttp3:okhttp-dnsoverhttps:4.3.1") ``` diff --git a/okhttp-logging-interceptor/README.md b/okhttp-logging-interceptor/README.md index 09283b926..af3a206f3 100644 --- a/okhttp-logging-interceptor/README.md +++ b/okhttp-logging-interceptor/README.md @@ -37,7 +37,7 @@ Download -------- ```kotlin -implementation("com.squareup.okhttp3:logging-interceptor:4.3.0") +implementation("com.squareup.okhttp3:logging-interceptor:4.3.1") ``` diff --git a/okhttp-sse/README.md b/okhttp-sse/README.md index 49fb8ed56..19ad0be08 100644 --- a/okhttp-sse/README.md +++ b/okhttp-sse/README.md @@ -7,5 +7,5 @@ API is not considered stable and may change at any time. ### Download ```kotlin -testImplementation("com.squareup.okhttp3:okhttp-sse:4.3.0") +testImplementation("com.squareup.okhttp3:okhttp-sse:4.3.1") ``` diff --git a/okhttp-tls/README.md b/okhttp-tls/README.md index 4ffd57cdb..1592af99c 100644 --- a/okhttp-tls/README.md +++ b/okhttp-tls/README.md @@ -227,7 +227,7 @@ Download -------- ```kotlin -implementation("com.squareup.okhttp3:okhttp-tls:4.3.0") +implementation("com.squareup.okhttp3:okhttp-tls:4.3.1") ``` [held_certificate]: http://square.github.io/okhttp/4.x/okhttp-tls/okhttp3.tls/-held-certificate/ diff --git a/okhttp-urlconnection/README.md b/okhttp-urlconnection/README.md index f613a754a..588fd8eed 100644 --- a/okhttp-urlconnection/README.md +++ b/okhttp-urlconnection/README.md @@ -6,5 +6,5 @@ This module integrates OkHttp with `Authenticator` and `CookieHandler` from `jav ### Download ```kotlin -testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.3.0") +testImplementation("com.squareup.okhttp3:okhttp-urlconnection:4.3.1") ```