From 43d7673c83402bf2ff57457988493bdb3a5b4a96 Mon Sep 17 00:00:00 2001 From: Greg Wilkins Date: Mon, 9 Jun 2014 16:30:56 +0200 Subject: [PATCH] fixed FCGI --- .../org/eclipse/jetty/fcgi/server/HttpChannelOverFCGI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jetty-fcgi/fcgi-server/src/main/java/org/eclipse/jetty/fcgi/server/HttpChannelOverFCGI.java b/jetty-fcgi/fcgi-server/src/main/java/org/eclipse/jetty/fcgi/server/HttpChannelOverFCGI.java index 0338a402f4a..39ef42b081c 100644 --- a/jetty-fcgi/fcgi-server/src/main/java/org/eclipse/jetty/fcgi/server/HttpChannelOverFCGI.java +++ b/jetty-fcgi/fcgi-server/src/main/java/org/eclipse/jetty/fcgi/server/HttpChannelOverFCGI.java @@ -29,6 +29,7 @@ import java.util.concurrent.atomic.AtomicReference; import org.eclipse.jetty.fcgi.FCGI; import org.eclipse.jetty.http.HttpField; import org.eclipse.jetty.http.HttpMethod; +import org.eclipse.jetty.http.HttpURI; import org.eclipse.jetty.http.HttpVersion; import org.eclipse.jetty.io.EndPoint; import org.eclipse.jetty.server.Connector; @@ -76,8 +77,7 @@ public class HttpChannelOverFCGI extends HttpChannel String uri = path; if (query != null && query.length() > 0) uri += "?" + query; - startRequest(HttpMethod.fromString(method), method, ByteBuffer.wrap(uri.getBytes(StandardCharsets.UTF_8)), - HttpVersion.fromString(version)); + startRequest(method, new HttpURI(uri),HttpVersion.fromString(version)); for (HttpField fcgiField : fields) {