Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: HTTP
-
Labels:None
-
Number of attachments :
Description
If the http request contain an url without trailing slash, the Jetty returns error 400. I.e.
POST http://192.168.13.81:8082/ HTTP/1.0
works fine, but
POST http://192.168.13.81:8082 HTTP/1.0
fails.
I've tried to replace the tomcat by jetty, but I cannot do it because of the issue.
This is line which throws the 400 error:
protected void handleRequest() throws IOException { if (_server.isRunning()) { boolean retrying = false; boolean error = false; String threadName = null; String info=null; try { info = URIUtil.canonicalPath(_uri.getDecodedPath()); if (info == null) throw new HttpException(400);