Skip to content

Commit 5e79d38

Browse files
committed
Copy isSecure() property from JSR356 Session
Without this, it's impossible to know if a connection is done using SSL or not.
1 parent 260de9f commit 5e79d38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java

+1
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ public void onOpen(Session session, final EndpointConfig endpointConfig) {
248248
.remoteInetSocketAddress((Callable<InetSocketAddress>) () -> (InetSocketAddress) endpointConfig.getUserProperties().get(JAVAX_WEBSOCKET_ENDPOINT_REMOTE_ADDRESS))
249249
.localInetSocketAddress((Callable<InetSocketAddress>) () -> (InetSocketAddress) endpointConfig.getUserProperties().get(JAVAX_WEBSOCKET_ENDPOINT_LOCAL_ADDRESS))
250250
.attributes(attributes)
251+
.isSSecure(session.isSecure())
251252
.build()
252253
.queryString(session.getQueryString());
253254

0 commit comments

Comments
 (0)