Commit 065ee844 authored by Wei Liu's avatar Wei Liu
Browse files

Fix libcore.java.net.OldCookieHandlerTest#test_get_put()

Bug: 18619181
Change-Id: I50e531c6e47bdfd1e4bebf9bd12a2011840929c2
parent 3eb44e34
......@@ -41,6 +41,7 @@ public class OldCookieHandlerTest extends TestCase {
CookieHandler.setDefault(mch);
MockWebServer server = new MockWebServer();
server.play();
server.enqueue(new MockResponse().addHeader("Set-Cookie2: a=\"android\"; "
+ "Comment=\"this cookie is delicious\"; "
+ "CommentURL=\"http://google.com/\"; "
......@@ -51,7 +52,6 @@ public class OldCookieHandlerTest extends TestCase {
+ "Port=\"80,443," + server.getPort() + "\"; "
+ "Secure; "
+ "Version=\"1\""));
server.play();
URLConnection connection = server.getUrl("/path/foo").openConnection();
connection.getContent();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment