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

This commit is contained in:
Norman Maurer 2012-04-16 15:30:43 +02:00
parent 00e59da7ba
commit cd92478bfc

View File

@ -130,8 +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("")) {
request.addHeader(Names.SEC_WEBSOCKET_PROTOCOL, protocol);