Use Sec-WebSocket-Origin in WebSocketClientHandshaker08 as replacement for Origin. See #264

This commit is contained in:
Norman Maurer 2012-04-16 15:29:27 +02:00
parent 951c275869
commit ff5787266d

View File

@ -130,7 +130,10 @@ public class WebSocketClientHandshaker08 extends WebSocketClientHandshaker {
// See http://tools.ietf.org/html/rfc6454#section-6.2
originValue = originValue + ":" + wsPort;
}
request.addHeader(Names.ORIGIN, originValue);
// Use Sec-WebSocket-Origin
// See https://github.com/netty/netty/issues/264
request.addHeader(Names.SEC_WEBSOCKET_ORIGIN, originValue);
if (protocol != null && !protocol.equals("")) {