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