Skip to content

Commit 6156922

Browse files
committed
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
1 parent 88d84c5 commit 6156922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/jboss/netty/handler/codec/http/HttpContentDecoder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) throws Ex
6262
Object msg = e.getMessage();
6363
if (msg instanceof HttpResponse && ((HttpResponse) msg).getStatus().getCode() == 100) {
6464
// 100-continue response must be passed through.
65-
ctx.sendDownstream(e);
65+
ctx.sendUpstream(e);
6666
} else if (msg instanceof HttpMessage) {
6767
HttpMessage m = (HttpMessage) msg;
6868

0 commit comments

Comments
 (0)