From 6156922ad6d8d2c4965dbdd10f4f2b65b13b9e76 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 3 Aug 2011 21:25:20 +0900 Subject: [PATCH] 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 --- .../org/jboss/netty/handler/codec/http/HttpContentDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/handler/codec/http/HttpContentDecoder.java b/src/main/java/org/jboss/netty/handler/codec/http/HttpContentDecoder.java index 3a5f0190ab..a322a71658 100644 --- a/src/main/java/org/jboss/netty/handler/codec/http/HttpContentDecoder.java +++ b/src/main/java/org/jboss/netty/handler/codec/http/HttpContentDecoder.java @@ -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;