mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-04-06 02:37:16 +00:00
Fxi teh spolling of handshakder
This commit is contained in:
parent
cdab8f429e
commit
3075d3cea8
@ -17,8 +17,8 @@ import java.net.URI;
|
||||
* A version of {@link WebSocketClientHandshaker13} which doesn't add the {@link HttpHeaderNames#ORIGIN} header to the
|
||||
* original HTTP request.
|
||||
*/
|
||||
public class NoOriginWebSocketHanshakder extends WebSocketClientHandshaker13 {
|
||||
public NoOriginWebSocketHanshakder(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength) {
|
||||
public class NoOriginWebSocketHandshaker extends WebSocketClientHandshaker13 {
|
||||
public NoOriginWebSocketHandshaker(URI webSocketURL, WebSocketVersion version, String subprotocol, boolean allowExtensions, HttpHeaders customHeaders, int maxFramePayloadLength) {
|
||||
super(webSocketURL, version, subprotocol, allowExtensions, customHeaders, maxFramePayloadLength);
|
||||
}
|
||||
|
@ -133,7 +133,7 @@ public class Websocket extends Resource<Websocket> {
|
||||
}
|
||||
|
||||
var subprotocol = headers.get(HttpHeaderNames.SEC_WEBSOCKET_PROTOCOL);
|
||||
WebSocketClientHandshaker handshaker = new NoOriginWebSocketHanshakder(
|
||||
WebSocketClientHandshaker handshaker = new NoOriginWebSocketHandshaker(
|
||||
uri, WebSocketVersion.V13, subprotocol, true, headers,
|
||||
options.websocketMessage <= 0 ? MAX_MESSAGE_SIZE : options.websocketMessage
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user