1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-17 08:42:25 +03:00
Commit Graph

2427 Commits

Author SHA1 Message Date
jwilson
14eb077351 [maven-release-plugin] prepare release parent-3.2.0 parent-3.2.0 2016-02-25 20:54:08 -05:00
jwilson
5be2fc120f Update readme for 3.2.0. 2016-02-25 20:46:42 -05:00
Jesse Wilson
c1ca252e17 Merge pull request #2371 from dave-r12/removed-filesystem-exists-ioexception
Removed IOException from FileSystem exists method as this should never occur.
2016-02-25 18:32:16 -05:00
Dave Roberge
aaa41df1e9 Removed IOException from FileSystem exists method as this should never occur. 2016-02-25 16:53:04 -05:00
Jesse Wilson
2c3deaebff Merge pull request #2366 from dave-r12/graceful-trim-to-size-failure
Gracefully recover from a failure to trim cache to size.
2016-02-25 13:43:45 -05:00
Dave Roberge
e0369c834e Gracefully recover from a failure to trim cache to size. 2016-02-25 08:19:56 -05:00
Jake Wharton
3598913336 Merge pull request #2360 from square/jwilson_0222_not_self_signed
Don't require the CA root to be self-signed.
2016-02-23 00:33:33 -05:00
jwilson
e9fb74ed0a Don't require the CA root to be self-signed.
Some root certificates may not be.

Also test the limits of the certificate chain length, and put defense
in for weird unexpected cycles in the trusted certificates.
2016-02-22 21:32:21 -05:00
Jesse Wilson
98871d3820 Merge pull request #2358 from square/jwilson_0221_ipv6
Make IPv6 request lines consistent with Firefox and Chrome.
2016-02-22 00:19:44 -05:00
jwilson
7ceaa2387f Make IPv6 request lines consistent with Firefox and Chrome.
Previously we omitted the square braces and explicit port on CONNECT requests
and the square braces in the Host header.

Closes https://github.com/square/okhttp/issues/2344
2016-02-22 00:13:05 -05:00
Jesse Wilson
472329ecbb Merge pull request #2356 from square/jwilson_0221_pins
Implement support for SHA-256 pins.
2016-02-21 18:52:00 -05:00
jwilson
7396ac00bc Implement support for SHA-256 pins.
Closes: https://github.com/square/okhttp/issues/1539
2016-02-21 18:38:04 -05:00
Jake Wharton
b7f9f2e2ab Merge pull request #2355 from square/jwilson_0221_issue_template
Issue template for OkHttp.
2016-02-21 12:44:11 -05:00
jwilson
19606deb80 Issue template for OkHttp.
Once we get this in a good place I'd like to do likewise for our other projects
that get a reasonable number of issue reports.
2016-02-21 11:52:34 -05:00
Jake Wharton
9e2e1932e2 Merge pull request #2353 from square/jwilson_0220_defeat_caching
Always build full chains with CertificateChainCleaner.
2016-02-20 23:59:41 -05:00
jwilson
c5cc94ee19 Always build full chains with CertificateChainCleaner.
We had a bug on Android where the trust root index would return trusted
intermediate certificates when we called findTrustAnchorByIssuerAndSignature().
This would lead to a partial chain, which would fail the pin check
unnecessarily.

Also permit that method to return null, as it does when the certificate
is not trusted.
2016-02-20 22:26:41 -05:00
jwilson
edc9ac531e Merge branch 'NightlyNexus-master'
* NightlyNexus-master:
  Add HttpUrl.Builder.addPathSegments()
2016-02-20 16:00:09 -05:00
Eric Cochran
de0d48866f Add HttpUrl.Builder.addPathSegments() 2016-02-20 15:51:04 -05:00
Jesse Wilson
8885f8c019 Merge pull request #2345 from NightlyNexus/call-doc
Remove untrue Callback statement from doc
2016-02-19 05:32:52 -08:00
Jake Wharton
3b78bccfce Merge pull request #2347 from square/jwilson_0216_update_airline
Update airline.
2016-02-16 13:37:13 -05:00
jwilson
512f268a2a Update airline.
Closes: https://github.com/square/okhttp/issues/2346
2016-02-16 10:10:48 -08:00
Eric Cochran
881bfb826f Remove untrue Callback statement from doc 2016-02-15 22:55:41 -08:00
Jake Wharton
e2139932cc Merge pull request #2343 from reisub/patch-1
Replace deprecated method
2016-02-15 09:13:25 -05:00
Dino Kovač
34b3942008 Replace deprecated method 2016-02-15 09:58:29 +01:00
jwilson
b8fd4e3de0 Update readme and changelog for 3.1.2. 2016-02-10 09:18:57 -05:00
jwilson
ac4aea6a52 [maven-release-plugin] prepare for next development iteration 2016-02-10 08:37:54 -05:00
jwilson
9aa5e87a2c [maven-release-plugin] prepare release parent-3.1.2 parent-3.1.2 2016-02-10 08:37:52 -05:00
Jake Wharton
c0c690adaf Merge pull request #2332 from square/jwilson_0209_robo
Hack in limited support for Robolectric.
2016-02-09 23:07:02 -05:00
jwilson
dd09bdb0de Hack in limited support for Robolectric.
This gets trust manager extraction working, but not ALPN or other
platform features.

Also remove some unused socket tagging features.
2016-02-09 22:47:12 -05:00
Jesse Wilson
3ccb46dd16 Merge pull request #2330 from square/jwilson_0209_dont_pay
Don't pay to clean certificates if we aren't pinning.
2016-02-09 11:20:54 -05:00
jwilson
456a7456ec Don't pay to clean certificates if we aren't pinning. 2016-02-09 11:09:38 -05:00
jwilson
c2e5cc468d Update readme for 3.1.1. 2016-02-07 22:37:32 -05:00
jwilson
258a4fe050 Update changelog for 3.1.1. 2016-02-07 22:35:45 -05:00
jwilson
f152331414 Update changelog for 2.7.4.
Conflicts:
	CHANGELOG.md
2016-02-07 22:35:10 -05:00
jwilson
ef1dbe1297 [maven-release-plugin] prepare for next development iteration 2016-02-07 22:10:22 -05:00
jwilson
0cd6b186b1 [maven-release-plugin] prepare release parent-3.1.1 parent-3.1.1 2016-02-07 22:10:19 -05:00
Jake Wharton
1952a10782 Merge pull request #2325 from square/jwilson_0207_filthy
Support the GMS security provider when searching for the trust manager.
2016-02-07 19:53:47 -05:00
jwilson
44a95fc32f Support the GMS security provider when searching for the trust manager.
Closes https://github.com/square/okhttp/issues/2323
2016-02-07 19:05:28 -05:00
Jake Wharton
417e025a83 Merge pull request #2324 from square/jwilson_0207_optimize_trust_root_index
Don't build a trust root index on Android.
2016-02-07 11:49:13 -05:00
jwilson
784fabac7d Don't build a trust root index on Android.
We can just cheat and use reflection to use Conscrypt's trust root index
directly. This results in a substantial savings in app startup - 500
milliseconds or more.

Closes: https://github.com/square/okhttp/issues/2321
2016-02-07 11:21:22 -05:00
jwilson
61b0558118 Update readme for 3.1.0. 2016-02-06 22:26:14 -05:00
jwilson
8c0b43b800 Update changelog for 2.7.3.
Conflicts:
	CHANGELOG.md
2016-02-06 22:25:20 -05:00
jwilson
50395f9b6a [maven-release-plugin] prepare for next development iteration 2016-02-06 12:59:27 -05:00
jwilson
519ec8adca [maven-release-plugin] prepare release parent-3.1.0 parent-3.1.0 2016-02-06 12:59:23 -05:00
jwilson
7a01a7f4bd Changelog for OkHttp 3.1. 2016-02-06 12:55:13 -05:00
jwilson
2dade17682 Prefer hostname over hostName.
Unfortunately MockWebServer exposes a method getHostName() so I can't
fix it everywhere without breaking the API. But that's a mistake, we
really want it to be hostname going forward.

Also fix some missing copyright statements.
2016-02-06 12:38:21 -05:00
Jake Wharton
2069e159ef Merge pull request #2319 from square/jwilson_0206_ssl_context_cleanups
Generalize the API in SslContextBuilder for fancier tests.
2016-02-06 11:59:14 -05:00
jwilson
457f4994a5 Generalize the API in SslContextBuilder for fancier tests. 2016-02-06 11:52:34 -05:00
Jake Wharton
ec8c095d75 Merge pull request #2317 from square/jw/defer-ws-writes
Defer known-length payload writes when within a segment of completion.
2016-02-05 17:33:27 -05:00
Jake Wharton
cc70a10177 Defer known-length payload writes when within a segment of completion.
This allows both really small bodies and very large buffered bodies to be written as a single frame.
2016-02-05 17:16:54 -05:00