1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-15 20:56:41 +03:00
Commit Graph

2954 Commits

Author SHA1 Message Date
jwilson
ea582e6c1b [maven-release-plugin] prepare release parent-3.8.1 parent-3.8.1 2017-06-18 13:08:21 -04:00
jwilson
77e3755c45 Prepare to release OkHttp 3.8.1.
It has a fix for https://github.com/square/okhttp/issues/3308
2017-06-18 13:04:59 -04:00
Dave Roberge
7163cbee63 Recover from a stale coalesced connection.
https://github.com/square/okhttp/issues/3308
2017-06-18 13:02:41 -04:00
jwilson
cb981daecf [maven-release-plugin] prepare release parent-3.8.0 parent-3.8.0 2017-05-13 10:58:04 -04:00
Jesse Wilson
a8bf90968d Merge pull request #3352 from square/jwilson.0513.javadoc_problems
Fix Javadoc builds with the jsr305 dependency.
2017-05-13 10:54:20 -04:00
jwilson
e7e22feb12 Fix Javadoc builds with the jsr305 dependency.
Because multiple modules share a package we need to share the dependency on
everything in package-info.java.
2017-05-13 10:51:29 -04:00
jwilson
e5c84e1aef Update changelog for OkHttp 3.8. 2017-05-13 08:04:14 -04:00
Jesse Wilson
9ce873ba7e Merge pull request #3351 from square/jw/2017-05-12/okio
Okio 1.13.0
2017-05-12 15:46:58 -04:00
Jake Wharton
145dbd74fd Okio 1.13.0 2017-05-12 15:36:04 -04:00
Jesse Wilson
714765d9f1 Merge pull request #3350 from ericaschulz/immutable_v2
Add immutable to Cache Control
2017-05-12 10:33:59 -04:00
ericaschulz
29d3b73b89 Add immutable to Cache Control 2017-05-12 09:10:38 -05:00
Jesse Wilson
e14817d993 Merge pull request #3346 from githubsaturn/master
Fix for NPE Crash due to a bug on Android 7.0
2017-05-12 00:14:52 -04:00
Kasra Bigdeli
b8a0352d52 Fix for NPE Crash due to a bug on Android 7.0 https://github.com/square/okhttp/issues/3245 2017-05-11 15:53:19 -07:00
Jesse Wilson
63ee9b9b17 Merge pull request #3335 from whenSunSet/master
Update RouteDatabase.java
2017-05-09 12:46:09 -04:00
When Sunset
5f82d28d0e Update RouteDatabase.java
this class has a note mistake
2017-05-09 11:21:40 +08:00
Jesse Wilson
c70e35802e Merge pull request #3331 from square/jwilson.0506.okhttp_nullable
Import jsr305 and use it to mark @Nullable stuff.
2017-05-06 16:13:40 -04:00
jwilson
011b2ee76d Import jsr305 and use it to mark @Nullable stuff.
This library is a provided dependency and is not necessary to be included
by OkHttp users.

This currently covers the okhttp and okhttp-logging-interceptor modules
only. It does not cover the 'internal' package in OkHttp, or its test cases.
We can add those as needed.
2017-05-06 15:25:55 -04:00
Jake Wharton
254b0752e5 Merge pull request #3330 from square/jwilson.0506.response_message_not_null
Forbid null for a response's message.
2017-05-06 11:51:43 -07:00
Jake Wharton
e791f48af6 Merge pull request #3332 from square/jwilson.0506.upgrade_checkstyle_77
Upgrade to Checktyle 7.7.
2017-05-06 11:51:00 -07:00
jwilson
83b9dd4275 Upgrade to Checktyle 7.7.
This allows us to put @Nullable immediately preceding the return type,
which is exactly where we want it.
2017-05-06 14:21:55 -04:00
jwilson
29d56966c1 Forbid null for a response's message.
This was only ever null in test code. Everything that parses responses from
the network gets a non-null value. The message may be empty.
2017-05-06 11:57:06 -04:00
Jesse Wilson
537c7bc57c Merge pull request #3327 from square/jwilson.0505.forbid_null_challenge_parameters
Forbid null schemes and realms in Challenge.
2017-05-05 23:18:20 -04:00
Jesse Wilson
b8c44c31b2 Merge pull request #3326 from square/jwilson.0505.forbid_null_tls_versions
Forbid null for a handshake's TLS version.
2017-05-05 22:58:09 -04:00
jwilson
9beaab6325 Forbid null schemes and realms in Challenge.
These were never null in practice.
2017-05-05 22:57:04 -04:00
jwilson
bf83abb01c Forbid null for a handshake's TLS version.
This value is almost always non-null. The only exception is when it was
persisted by a version of OkHttp prior to 3.0.

Rather than accepting null, and forcing clients to handle that value,
I'm changing the API to reject null. I'm forcing a default of SSL_3_0
for responses that we don't have a version for. I don't anticipate this
causing problems in practice.
2017-05-05 22:45:08 -04:00
Jesse Wilson
f1edd9d15e Merge pull request #3316 from ericaschulz/master
Update Call Test & Route Selector
2017-05-05 09:33:14 -04:00
ericaschulz
cc12ce97a4 Update Call Test & Route Selector 2017-05-05 08:31:38 -05:00
Jake Wharton
f4e487b801 Merge pull request #3315 from square/jwilson.0429.alpn_131
Configure ALPN for Java 1.8.0_131.
2017-04-29 23:44:59 -04:00
jwilson
a5bcfed0c4 Merge branch 'Jawnnypoo-name-for-null-header'
* Jawnnypoo-name-for-null-header:
  Log the name of the null header
2017-04-29 21:49:32 -04:00
John Carlson
7b0f74f662 Log the name of the null header 2017-04-29 21:49:16 -04:00
jwilson
0bede6eb88 Configure ALPN for Java 1.8.0_131. 2017-04-29 21:41:52 -04:00
Jesse Wilson
36a4d16b3d Merge pull request #3293 from square/jw/2017-04-18/once
Only make a single pass when removing protocols.
2017-04-18 22:58:51 -04:00
Jake Wharton
9ca7b596a7 Only make a single pass when removing protocols.
contains() is already iterating the list so we might as well just be doing the remove() operation on that pass.
2017-04-18 13:23:55 -04:00
Jesse Wilson
5e460fd761 Merge pull request #3287 from EricEdens/master
Fix for HttpUrl's IPv6 tests
2017-04-16 02:20:26 -04:00
Eric Edens
48b19631e5 Remove extra hex digits from IPv6 tests. 2017-04-15 21:59:59 -07:00
jwilson
6f8cdcca1d [maven-release-plugin] prepare for next development iteration 2017-04-15 21:53:08 -04:00
jwilson
e56f561e93 [maven-release-plugin] prepare release parent-3.7.0 parent-3.7.0 2017-04-15 21:53:02 -04:00
Jesse Wilson
a168970380 Merge pull request #3286 from square/jwilson.0415.upgrade_okio
Upgrade to Okio 1.12.
2017-04-15 21:36:35 -04:00
jwilson
8119277581 Upgrade to Okio 1.12. 2017-04-15 21:32:54 -04:00
jwilson
dd145fbbcd Update changelog for OkHttp 3.7.0. 2017-04-15 21:24:54 -04:00
Jesse Wilson
a94f952d4f Merge pull request #3285 from square/jwilson.0415.hide_eventlistener
Hide EventListener from the public API for OkHttp 3.7.
2017-04-15 21:23:23 -04:00
Jesse Wilson
31f04d7f14 Merge pull request #3283 from square/dr.0415.public-suffix-api
Expose public suffix info via an API in HttpUrl.
2017-04-15 20:31:34 -04:00
jwilson
60b1c1d365 Hide EventListener from the public API for OkHttp 3.7.
It isn't wired up yet.
2017-04-15 20:30:04 -04:00
Jesse Wilson
82b5759d46 Merge pull request #3284 from square/jwilson.0415.fix_flaky_test
Fix WebSocketHttpTest.throwingOnMessageClosesImmediatelyAndFails().
2017-04-15 17:52:32 -04:00
Dave Roberge
379ed8a9a5 Expose public suffix info via an API in HttpUrl. 2017-04-15 17:44:20 -04:00
jwilson
ac00ca5ee4 Fix WebSocketHttpTest.throwingOnMessageClosesImmediatelyAndFails().
The server will receive an EOFException when the client errors out.
But because that didn't usually happen immediately our test got away
with confirming there were no further events.

Also fix WebSocketHttpTest.readTimeoutAppliesToHttpRequest().

Closes: https://github.com/square/okhttp/issues/3228
Closes: https://github.com/square/okhttp/issues/3090
2017-04-15 17:43:15 -04:00
Jesse Wilson
214a72f81b Merge pull request #3282 from square/jwilson.0415.invalidate_cache
Invalidate the cache even if the response has no body.
2017-04-15 16:34:20 -04:00
jwilson
c9496d350c Invalidate the cache even if the response has no body.
Closes: https://github.com/square/okhttp/issues/3203
2017-04-15 13:25:03 -04:00
Jesse Wilson
417ec22305 Merge pull request #3281 from square/jwilson.0415.not_cryptographic
Don't use a cryptographic RNG for web sockets.
2017-04-15 13:09:36 -04:00
jwilson
7dba9cae32 Don't use a cryptographic RNG for web sockets.
Some broken Android devices have problems with 'new SecureRandom()' and it's easier
to not use SecureRandom than to work-around this.

Closes: https://github.com/square/okhttp/issues/3135
2017-04-15 11:53:07 -04:00