Skip to content

Commit

Permalink
Issue #3009 - Fixing FCGI Test field value case difference
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
  • Loading branch information
joakime committed Oct 22, 2018
1 parent 1091b98 commit 6882c32
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -34,6 +37,7 @@
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
Expand Down Expand Up @@ -80,7 +84,7 @@ public void onHeader(int request, HttpField field)
switch (field.getName())
{
case contentTypeName:
assertEquals(contentTypeValue, field.getValue());
assertEquals(contentTypeValue, field.getValue().toLowerCase(Locale.ENGLISH));
params.set(params.get() * primes[1]);
break;
default:
Expand Down

0 comments on commit 6882c32

Please sign in to comment.