copy URI buffer as header buffer is no longer immutable

This commit is contained in:
Greg Wilkins 2011-07-07 16:23:23 +10:00
parent b890ff8fb2
commit 460c2a6ea8
3 changed files with 12 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<parent>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-project</artifactId>
<version>7.4.4-SNAPSHOT</version>
<version>7.5.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>jetty-server</artifactId>

View File

@ -687,6 +687,8 @@ public class HttpConnection extends AbstractConnection implements Connection
@Override
public void startRequest(Buffer method, Buffer uri, Buffer version) throws IOException
{
uri=uri.asImmutableBuffer();
_host = false;
_expect = false;
_expect100Continue=false;

View File

@ -25,4 +25,13 @@ public class SocketServerTest extends HttpServerTestBase
{
startServer(new SocketConnector());
}
@Override
public void testBlockingWhileReadingRequestContent() throws Exception
{
// TODO Auto-generated method stub
super.testBlockingWhileReadingRequestContent();
}
}