Merge remote-tracking branch 'origin/jetty-9.3.x'
This commit is contained in:
commit
18a3af1951
|
@ -302,10 +302,6 @@ public class HttpURI
|
|||
break;
|
||||
|
||||
case '@':
|
||||
_user=uri.substring(mark,i);
|
||||
mark=i+1;
|
||||
break;
|
||||
|
||||
case ';':
|
||||
case '?':
|
||||
case '#':
|
||||
|
|
|
@ -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},
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue