diff options
author | Neil Fuller <nfuller@google.com> | 2015-02-11 09:33:10 +0000 |
---|---|---|
committer | Neil Fuller <nfuller@google.com> | 2015-02-11 10:15:24 +0000 |
commit | 3be78b8b0ca13d9e05e2327acb8d8654f719a3f6 (patch) | |
tree | 68d9e2f18e43ccc4e75bf9fca8cdbd4db44640a4 /okhttp-android-support | |
parent | 576c6599deeae3ca87e545c67ce765d9c4062b14 (diff) | |
download | okhttp-3be78b8b0ca13d9e05e2327acb8d8654f719a3f6.tar.gz |
A rollup of recent upstream commits for OkHttp
squareup/okhttp commits from:
0a197466608681593cc9be9487965a0b1d5c244c
to:
b609edd07864d7191dcda8ba1f6c833c9fe170ad
squareup/okio commits from:
654ddf5e8f6311fda77e429c22d5e0e15f713b8d
to
82358df7f09e18aa42348836c614212085bbf045
Changes that might affect Android:
1) Cache control request headers: If-None-Match
or If-Modified-Since sent, never both.
2) Make okhttp behave more like a private, not a
shared cache.
3) SSLPeerUnverifiedException now thrown on
hostname verification errors, not IOException.
Change-Id: I3a2e8ae9bebfec84eaf8eb2aaa70085fa40fadd5
Diffstat (limited to 'okhttp-android-support')
-rw-r--r-- | okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ResponseCacheTest.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ResponseCacheTest.java b/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ResponseCacheTest.java index 5fdb2fc..3c91fb5 100644 --- a/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ResponseCacheTest.java +++ b/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/ResponseCacheTest.java @@ -77,7 +77,6 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertNotNull; import static org.junit.Assert.assertNull; -import static org.junit.Assert.assertSame; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; @@ -628,7 +627,7 @@ public final class ResponseCacheTest { .addHeader("Last-Modified: " + lastModifiedDate) .addHeader("Expires: " + formatDate(-1, TimeUnit.HOURS))); assertEquals("v1", conditionalRequest.getHeader("If-None-Match")); - assertEquals(lastModifiedDate, conditionalRequest.getHeader("If-Modified-Since")); + assertNull(conditionalRequest.getHeader("If-Modified-Since")); } @Test public void etagAndExpirationDateInTheFuture() throws Exception { |