You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-webflux/src/main/java/org/springframework/web/reactive/socket/server/support/HandshakeWebSocketService.java
+13-11
Original file line number
Diff line number
Diff line change
@@ -205,23 +205,25 @@ public Mono<Void> handleRequest(ServerWebExchange exchange, WebSocketHandler han
205
205
HttpMethodmethod = request.getMethod();
206
206
HttpHeadersheaders = request.getHeaders();
207
207
208
-
if (HttpMethod.GET != method && CONNECT_METHOD != method) {
208
+
if (HttpMethod.GET != method && !CONNECT_METHOD.equals(method)) {
Copy file name to clipboardExpand all lines: spring-websocket/src/main/java/org/springframework/web/socket/server/support/AbstractHandshakeHandler.java
+18-14
Original file line number
Diff line number
Diff line change
@@ -215,21 +215,23 @@ public final boolean doHandshake(ServerHttpRequest request, ServerHttpResponse r
215
215
}
216
216
try {
217
217
HttpMethodhttpMethod = request.getMethod();
218
-
if (HttpMethod.GET != httpMethod && CONNECT_METHOD != httpMethod) {
218
+
if (HttpMethod.GET != httpMethod && !CONNECT_METHOD.equals(httpMethod)) {
0 commit comments