[#737] WebSocketClientHandshaker00 should set Content-Length header do workaround problem with proxy

This commit is contained in:
Norman Maurer 2012-11-14 10:08:44 +01:00
parent b5d83a2407
commit 46d713970b

View File

@ -170,6 +170,9 @@ public class WebSocketClientHandshaker00 extends WebSocketClientHandshaker {
}
}
// Set Content-Length to workaround some known defect.
// See also: http://www.ietf.org/mail-archive/web/hybi/current/msg02149.html
request.setHeader(Names.CONTENT_LENGTH, key3.length);
request.setContent(Unpooled.copiedBuffer(key3));
final ChannelFuture handshakeFuture = channel.newFuture();