From 6882c32e436c367b93226f1e5f7fedcb405c90ef Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Mon, 22 Oct 2018 16:20:44 -0500 Subject: [PATCH] Issue #3009 - Fixing FCGI Test field value case difference Signed-off-by: Joakim Erdfelt --- .../org/eclipse/jetty/fcgi/parser/ClientParserTest.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jetty-fcgi/fcgi-client/src/test/java/org/eclipse/jetty/fcgi/parser/ClientParserTest.java b/jetty-fcgi/fcgi-client/src/test/java/org/eclipse/jetty/fcgi/parser/ClientParserTest.java index 65f4b32f4c3..f242f0c04c1 100644 --- a/jetty-fcgi/fcgi-client/src/test/java/org/eclipse/jetty/fcgi/parser/ClientParserTest.java +++ b/jetty-fcgi/fcgi-client/src/test/java/org/eclipse/jetty/fcgi/parser/ClientParserTest.java @@ -18,11 +18,14 @@ package org.eclipse.jetty.fcgi.parser; +import static org.hamcrest.CoreMatchers.is; +import static org.hamcrest.MatcherAssert.assertThat; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; import java.nio.ByteBuffer; +import java.util.Locale; import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicInteger; @@ -34,6 +37,7 @@ import org.eclipse.jetty.http.HttpFields; import org.eclipse.jetty.io.ByteBufferPool; import org.eclipse.jetty.io.MappedByteBufferPool; +import org.eclipse.jetty.util.URIUtil; import org.junit.jupiter.api.Test; public class ClientParserTest @@ -80,7 +84,7 @@ public class ClientParserTest switch (field.getName()) { case contentTypeName: - assertEquals(contentTypeValue, field.getValue()); + assertEquals(contentTypeValue, field.getValue().toLowerCase(Locale.ENGLISH)); params.set(params.get() * primes[1]); break; default: