NETTY-429 IllegalArgumentException when an HTTP server sends a '100 Continue' response to HttpContentDecoder.

* Fixed a silly coding mistake where I sent the event in the opposite direction
This commit is contained in:
Trustin Lee 2011-08-03 21:25:20 +09:00
parent 88d84c537c
commit 6156922ad6

View File

@ -62,7 +62,7 @@ public abstract class HttpContentDecoder extends SimpleChannelUpstreamHandler {
Object msg = e.getMessage();
if (msg instanceof HttpResponse && ((HttpResponse) msg).getStatus().getCode() == 100) {
// 100-continue response must be passed through.
ctx.sendDownstream(e);
ctx.sendUpstream(e);
} else if (msg instanceof HttpMessage) {
HttpMessage m = (HttpMessage) msg;