From 6ff664baf242700589492700ce6ccd282ca5d99a Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 9 Sep 2013 17:47:25 +1000 Subject: [PATCH] 416015 Handle null Accept-Language and other headers --- .../src/test/java/org/eclipse/jetty/server/RequestTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-server/src/test/java/org/eclipse/jetty/server/RequestTest.java b/jetty-server/src/test/java/org/eclipse/jetty/server/RequestTest.java index 1e2944432ea..03d35f04f8e 100644 --- a/jetty-server/src/test/java/org/eclipse/jetty/server/RequestTest.java +++ b/jetty-server/src/test/java/org/eclipse/jetty/server/RequestTest.java @@ -140,7 +140,7 @@ public class RequestTest assertNull(request.getCharacterEncoding()); assertEquals(0,request.getQueryString().length()); assertEquals(-1,request.getContentLength()); - assertEquals(0,request.getCookies().length); + assertNull(request.getCookies()); assertNull(request.getHeader("Name")); assertFalse(request.getHeaders("Name").hasMoreElements()); assertEquals(-1,request.getDateHeader("Name"));