Merge remote-tracking branch 'origin/jetty-9.3.x'

This commit is contained in:
Greg Wilkins 2015-11-26 11:40:37 +11:00
commit 18a3af1951
3 changed files with 14 additions and 5 deletions

View File

@ -302,10 +302,6 @@ public class HttpURI
break;
case '@':
_user=uri.substring(mark,i);
mark=i+1;
break;
case ';':
case '?':
case '#':

View File

@ -99,6 +99,13 @@ public class HttpURIParseTest
// Path with query alt syntax
{"/path/info?a=;query",null,null,null,"/path/info",null,"a=;query",null},
// URI with host character
{"/@path/info",null,null,null,"/@path/info",null,null,null},
{"/user@path/info",null,null,null,"/user@path/info",null,null,null},
{"//user@host/info",null,"host",null,"/info",null,null,null},
{"//@host/info",null,"host",null,"/info",null,null,null},
{"@host/info",null,null,null,"@host/info",null,null,null},
// Scheme-less, with host and port (overlapping with path)
{"//host:8080//",null,"host","8080","//",null,null,null},

View File

@ -93,6 +93,12 @@ public class HttpURITest
}
}
@Test
public void testAt() throws Exception
{
HttpURI uri = new HttpURI("/@foo/bar");
assertEquals("/@foo/bar",uri.getPath());
}
@Test
public void testParams() throws Exception