diff options
author | Jesse Wilson <jessewilson@google.com> | 2011-04-29 17:47:37 -0700 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2011-04-29 17:47:37 -0700 |
commit | adb64fbba2b781467e055706c3de0873dfc01166 (patch) | |
tree | f5ac451218b706ebdcce647133a57a5cbcd53c95 /support | |
parent | fe2dea5d0747cbe711fcf64f89845735f4da10c2 (diff) | |
download | libcore-adb64fbba2b781467e055706c3de0873dfc01166.zip libcore-adb64fbba2b781467e055706c3de0873dfc01166.tar.gz libcore-adb64fbba2b781467e055706c3de0873dfc01166.tar.bz2 |
Honor max-age and min-fresh request headers.
We now honor headers from both the server's response (which
we have cached) and the client's request.
Change-Id: Ib46e4fc0c5dd5b3e74cff8f45eea2dda51d20b94
http://b/3180373
Diffstat (limited to 'support')
-rw-r--r-- | support/src/test/java/tests/http/MockWebServer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/src/test/java/tests/http/MockWebServer.java b/support/src/test/java/tests/http/MockWebServer.java index 6de6c51..2d8215c 100644 --- a/support/src/test/java/tests/http/MockWebServer.java +++ b/support/src/test/java/tests/http/MockWebServer.java @@ -360,7 +360,7 @@ public final class MockWebServer { if (request.startsWith("OPTIONS ") || request.startsWith("GET ") || request.startsWith("HEAD ") || request.startsWith("DELETE ") - || request .startsWith("TRACE ")) { + || request .startsWith("TRACE ") || request.startsWith("CONNECT ")) { if (hasBody) { throw new IllegalArgumentException("Request must not have a body: " + request); } |