parent
4f20447a5a
commit
436c00b0af
|
@ -246,8 +246,9 @@ public class HpackDecoder
|
||||||
if (indexed)
|
if (indexed)
|
||||||
{
|
{
|
||||||
// add to dynamic table
|
// add to dynamic table
|
||||||
if (_context.add(field)==null)
|
_context.add(field);
|
||||||
throw new BadMessageException(HttpStatus.REQUEST_HEADER_FIELDS_TOO_LARGE_431,"Indexed field value too large");
|
// if (_context.add(field)==null)
|
||||||
|
// throw new BadMessageException(HttpStatus.REQUEST_HEADER_FIELDS_TOO_LARGE_431,"Indexed field value too large");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -457,12 +457,12 @@ public class HttpClientStreamTest extends AbstractTest
|
||||||
public void testInputStreamResponseListenerFailedBeforeResponse() throws Exception
|
public void testInputStreamResponseListenerFailedBeforeResponse() throws Exception
|
||||||
{
|
{
|
||||||
start(new EmptyServerHandler());
|
start(new EmptyServerHandler());
|
||||||
int port = connector instanceof ServerConnector?ServerConnector.class.cast( connector ).getLocalPort():1;
|
String uri = newURI();
|
||||||
server.stop();
|
server.stop();
|
||||||
|
|
||||||
InputStreamResponseListener listener = new InputStreamResponseListener();
|
InputStreamResponseListener listener = new InputStreamResponseListener();
|
||||||
// Connect to the wrong port
|
// Connect to the wrong port
|
||||||
client.newRequest("localhost",port)
|
client.newRequest(uri)
|
||||||
.scheme(getScheme())
|
.scheme(getScheme())
|
||||||
.send(listener);
|
.send(listener);
|
||||||
Result result = listener.await(5, TimeUnit.SECONDS);
|
Result result = listener.await(5, TimeUnit.SECONDS);
|
||||||
|
|
Loading…
Reference in New Issue