From 708104ccafa005f20481c0a3bc39df44da6dca8d Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Mon, 14 Nov 2016 14:08:11 -0700 Subject: [PATCH] Issue #1098 adding unit tests for bug report. --- .../src/test/java/org/eclipse/jetty/http/MimeTypesTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-http/src/test/java/org/eclipse/jetty/http/MimeTypesTest.java b/jetty-http/src/test/java/org/eclipse/jetty/http/MimeTypesTest.java index a45260f1639..362a211d03c 100644 --- a/jetty-http/src/test/java/org/eclipse/jetty/http/MimeTypesTest.java +++ b/jetty-http/src/test/java/org/eclipse/jetty/http/MimeTypesTest.java @@ -92,8 +92,8 @@ public class MimeTypesTest assertEquals(null,MimeTypes.getCharsetFromContentType("foo/bar")); assertEquals("utf-8",MimeTypes.getCharsetFromContentType("foo/bar;charset=uTf8")); assertEquals("utf-8",MimeTypes.getCharsetFromContentType("foo/bar;other=\"charset=abc\";charset=uTf8")); + assertEquals("utf-8",MimeTypes.getCharsetFromContentType("application/pdf;;; charset=UTF-8")); assertEquals("utf-8",MimeTypes.getCharsetFromContentType("text/html;charset=utf-8")); - } @Test