Issue #3009 - Fixing FCGI Test field value case difference

Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
This commit is contained in:
Joakim Erdfelt 2018-10-22 16:20:44 -05:00
parent 1091b98554
commit 6882c32e43
1 changed files with 5 additions and 1 deletions

View File

@ -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: