From a59439241f2c8a14ac3d428502b8453dcc448d4b Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 30 Sep 2013 12:59:34 +1000 Subject: [PATCH] 418227 Null cookie value test --- .../test/java/org/eclipse/jetty/http/HttpFieldsTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jetty-http/src/test/java/org/eclipse/jetty/http/HttpFieldsTest.java b/jetty-http/src/test/java/org/eclipse/jetty/http/HttpFieldsTest.java index a55b34f3893..13dbd77cd20 100644 --- a/jetty-http/src/test/java/org/eclipse/jetty/http/HttpFieldsTest.java +++ b/jetty-http/src/test/java/org/eclipse/jetty/http/HttpFieldsTest.java @@ -272,6 +272,12 @@ public class HttpFieldsTest public void testSetCookie() throws Exception { HttpFields fields = new HttpFields(); + + fields.addSetCookie("null",null,null,null,-1,null,false,false,-1); + assertEquals("null=",fields.getStringField("Set-Cookie")); + + fields.clear(); + fields.addSetCookie("minimal","value",null,null,-1,null,false,false,-1); assertEquals("minimal=value",fields.getStringField("Set-Cookie"));