433370 - PATCH method does not work with ProxyServlet.

Fixed by using Request.method(String) rather than
Request.method(HttpMethod).
This commit is contained in:
Simone Bordet 2014-04-24 11:20:20 +02:00
parent 9a428def2d
commit 63d59feb0f
1 changed files with 1 additions and 2 deletions

View File

@ -48,7 +48,6 @@ import org.eclipse.jetty.client.api.Result;
import org.eclipse.jetty.client.util.InputStreamContentProvider;
import org.eclipse.jetty.http.HttpField;
import org.eclipse.jetty.http.HttpHeader;
import org.eclipse.jetty.http.HttpMethod;
import org.eclipse.jetty.http.HttpVersion;
import org.eclipse.jetty.util.HttpCookieStore;
import org.eclipse.jetty.util.log.Log;
@ -391,7 +390,7 @@ public class ProxyServlet extends HttpServlet
}
final Request proxyRequest = _client.newRequest(rewrittenURI)
.method(HttpMethod.fromString(request.getMethod()))
.method(request.getMethod())
.version(HttpVersion.fromString(request.getProtocol()));
// Copy headers