1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-14 07:22:20 +03:00
Commit Graph

4182 Commits

Author SHA1 Message Date
Jesse Wilson
cf93aca33c Prepare for release 4.1.1. parent-4.1.1 2019-09-05 00:24:05 -04:00
Jesse Wilson
1af74c6569 Fix a regression in combining cache headers
This was introduced with our migration to Kotlin. Iterating over the indices
of the header names doesn't work because header names are not distinct.

Closes: https://github.com/square/okhttp/issues/5413
2019-09-05 00:08:39 -04:00
Jesse Wilson
4739b27806 Prepare for release 4.1.0. parent-4.1.0 2019-08-12 13:00:00 -04:00
Jesse Wilson
96fbf6b330 Merge pull request #5356 from square/jwilson.0812.no_application_plugin
Remove the application plugin from okcurl
2019-08-12 11:58:47 -04:00
Jesse Wilson
db39fa4a93 Remove the application plugin from okcurl
I can't have both this and shadow concurrently because they both attempt
to use the same classifier when publishing.
2019-08-12 11:55:55 -04:00
Yuri Schimke
f070df4ccc New OpenJDK 8 version (#5354) 2019-08-12 16:26:23 +01:00
Yuri Schimke
1994136a24 Update test host to squareup (#5343) 2019-08-10 17:20:43 +01:00
Yuri Schimke
cf0042b208 Extended Android tests (#5298)
Added tests related to certificate pinning, mockwebserver and cleartext blocking on legacy Android.
2019-08-10 15:28:50 +01:00
Yuri Schimke
609888f4d7 Increase timeout for flaky test (#5305) 2019-08-10 09:16:10 -04:00
Yuri Schimke
f40e21a956 Allow interrupt of singleton cleanup thread (#5334)
* Allow  interrupt of singleton cleanup thread

* inline

* Cleanup connections on interrupt

* Additional test debugging

* Delay before interrupting

* Remove println
2019-08-10 09:11:02 -04:00
Jesse Wilson
ba83fe6149 Merge pull request #5339 from AlexSzlavik/add-trustManager-accessor
Add TrustManager accessor to OkHttpClient.
2019-08-09 18:51:08 -04:00
Alex Szlavik
6452f24c41 Add TrustManager accessor to OkHTTPClient. 2019-08-09 18:05:30 -04:00
Jesse Wilson
b9b700b7b0 Merge pull request #5325 from square/coalesced-conn-destroyed
Recover from a coalesced connection that immediately goes unhealthy.
2019-08-09 16:35:51 -04:00
Jesse Wilson
e2a4a2fb6f Merge pull request #5338 from yschimke/simplify_version_test
Simplify version test
2019-08-09 15:49:01 -04:00
Yuri Schimke
a6a5d287c7 Avoid SecurityException on ProxySelector.getDefault when proxy set (#5332)
* Handle SecurityException on ProxySelector.getDefault

* Review comments

* remove newline
2019-08-09 15:47:21 -04:00
Yuri Schimke
ad2ff3af53 Simplify version test 2019-08-09 17:45:21 +01:00
Jesse Wilson
702cd84449 Merge pull request #5335 from yschimke/conscrypt_2.2.1
Conscrypt 2.2.1 release
2019-08-08 15:30:06 -04:00
Yuri Schimke
ef27dfae78 Conscrypt 2.2.1 release 2019-08-08 14:29:52 +01:00
Dave Roberge
8b69ce9b59 Recover from a coalesced connection that immediately goes unhealthy.
https://github.com/square/okhttp/issues/3308
2019-08-02 13:37:35 -05:00
Jay Estrella
0b3193d08b Update interceptor docs for response body behaviour (#5310) 2019-07-30 17:17:00 +01:00
Yuri Schimke
77a2a38333 Avoid gradle assemble in Travis (#5312) 2019-07-29 18:05:58 +01:00
Yuri Schimke
2a1f328d58 Add proxy event logging (#5300) 2019-07-25 05:42:32 +01:00
Yuri Schimke
6d655ba4f6 TravisCI downgrade back to trusty (#5301) 2019-07-24 21:33:00 +01:00
Yuri Schimke
24c7d54ecb Handle localhost as ipv6 without bracket quoting (#5297)
* Handle ipv6 hostnames without bracket quoting

* simplify

* Add ipv4 localhost test

* Update RecordedRequest.kt
2019-07-23 23:15:53 -04:00
Yuri Schimke
076e976c10 Picocli (#5207)
Switch from airline to picocli, which is more graal compatible and has nicer default output.
2019-07-19 15:15:05 +01:00
Yuri Schimke
ed25f41e48 Basic Android Instrumentation Test (#5253)
Runnable with 

```
ANDROID_SDK_ROOT=... ./gradlew connectedCheck
```
2019-07-16 23:15:20 +01:00
Yuri Schimke
2c7811a64a Move flaky issues to comments (#5289) 2019-07-16 22:50:51 +01:00
Yuri Schimke
a6c4ff6e44 Output client events after tagged @Flaky tests or failures (#5217)
Collect additional debugging info for know problem tests or after unplanned failures.
2019-07-16 22:34:32 +01:00
Yuri Schimke
daf49ff1ce Document kotlin library dependency (#5273) 2019-07-16 06:43:43 +01:00
Jesse Wilson
5c5038a87e Merge pull request #5283 from square/avoid-using-non-null-assertion-20190712
Avoid using non-null assertion in ConnectionSpec
2019-07-15 21:45:44 -04:00
Yuri Schimke
6903b89e0b Cleanup of error prone and warnings (#5268)
* Comment some warnings

* Wrap

* Disable warnings
2019-07-15 21:11:35 -04:00
Masaru Nomura
2712ac83cd Avoid using non-null assertion in ConnectionSpec
To be compatible with OkHttp3, OkHttp4.0 doesn't use non-null assertion.
2019-07-14 21:50:38 -04:00
Jesse Wilson
2d2a9c43af Merge pull request #5279 from square/jwilson.0710.401_changelog
Update the changelog for OkHttp 4.0.1
2019-07-10 11:41:16 -04:00
Jesse Wilson
7292e54a63 Update the changelog for OkHttp 4.0.1 2019-07-10 11:40:44 -04:00
Jesse Wilson
c3fc1d2755 Merge pull request #5276 from square/jakew/new-ws-close-codes/2019-07-08
Support new IANA WS close codes
2019-07-08 19:04:58 -04:00
Jake Wharton
a70f33635b Support new IANA WS close codes
https://www.iana.org/assignments/websocket/websocket.txt
2019-07-08 13:49:54 -04:00
Yuri Schimke
f2be5c3465 Check gzip response in brotli interceptor (#5274)
* Check gzip response in brotli interceptor

* Update BrotliInterceptorTest.kt
2019-07-07 11:08:36 -04:00
Jesse Wilson
1f8d27ca9f Merge pull request #5272 from yschimke/kotlin_upgrade
Kotlin upgrade to 1.3.41
2019-07-06 16:07:12 -04:00
Yuri Schimke
5430948211 Gradle Wrapper 5.5 (#5271)
* Gradle Wrapper 5.5

* Binary
2019-07-06 16:04:32 -04:00
Yuri Schimke
fad620526f Kotlin upgrade to 1.3.41
Automatically prompted by IDE
2019-07-06 19:58:33 +01:00
Yuri Schimke
3abc3e597f Brotli Interceptor (#5088)
Brotli compression Interceptor that also supports gzip, as transparent handling is disabled.
2019-07-06 11:46:31 +01:00
Yuri Schimke
930d4d07d8 Passing conscrypt test (#5270) 2019-07-06 09:03:50 +01:00
Jesse Wilson
fdbffbfebf Merge pull request #5267 from square/add-null-protocol-test
Add test: OkHttpClient.Builder.protocols(...) doesn't accept null
2019-07-04 17:24:51 -04:00
Masaru Nomura
f346acaa42 Add test: OkHttpClient.Builder.protocols(...) doesn't accept null 2019-07-04 01:40:50 -04:00
Yuri Schimke
97abbec6c0 Java internal compatibility e.g. HttpHeaders.hasBody (#5251) 2019-07-03 22:00:52 +01:00
Yuri Schimke
7bba4a0e36 Bouncy castle upgrade (#5264)
* Bouncy castle upgrade

* Testing on more platforms

* Revert CI change
2019-07-03 12:19:41 -04:00
Yuri Schimke
16b7e36968 Fix for conscrypt tests (#5263) 2019-07-03 07:20:28 +01:00
Jesse Wilson
83361312e8 Merge pull request #5256 from square/jwilson.0701.java8
Add a note on Java 8 to the upgrade guide
2019-07-02 17:34:21 -04:00
Jesse Wilson
447d74d954 Merge pull request #5260 from square/jakew/null-hostile-list/2019-07-02
Tolerate null-hostile lists in public API
2019-07-02 17:33:28 -04:00
Jesse Wilson
752fcd8218 Add a note on Java 8 to the upgrade guide 2019-07-02 11:24:39 -04:00