Author: remm
Date: Tue Oct 14 17:04:45 2014
New Revision: 1631817

URL: http://svn.apache.org/r1631817
Log:
Fix client subprotocol handling (pass protocol names from the annotation).

Modified:
    tomcat/trunk/java/org/apache/tomcat/websocket/WsWebSocketContainer.java
    tomcat/trunk/webapps/docs/changelog.xml

Modified: 
tomcat/trunk/java/org/apache/tomcat/websocket/WsWebSocketContainer.java
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/websocket/WsWebSocketContainer.java?rev=1631817&r1=1631816&r2=1631817&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/websocket/WsWebSocketContainer.java 
(original)
+++ tomcat/trunk/java/org/apache/tomcat/websocket/WsWebSocketContainer.java Tue 
Oct 14 17:04:45 2014
@@ -159,6 +159,7 @@ public class WsWebSocketContainer
         ClientEndpointConfig config = builder.
                 decoders(Arrays.asList(annotation.decoders())).
                 encoders(Arrays.asList(annotation.encoders())).
+                
preferredSubprotocols(Arrays.asList(annotation.subprotocols())).
                 build();
         return connectToServer(ep, config, path);
     }

Modified: tomcat/trunk/webapps/docs/changelog.xml
URL: 
http://svn.apache.org/viewvc/tomcat/trunk/webapps/docs/changelog.xml?rev=1631817&r1=1631816&r2=1631817&view=diff
==============================================================================
--- tomcat/trunk/webapps/docs/changelog.xml (original)
+++ tomcat/trunk/webapps/docs/changelog.xml Tue Oct 14 17:04:45 2014
@@ -175,6 +175,9 @@
         Extend support for the <code>permessage-deflate</code> extension to the
         client implementation. (markt)
       </add>
+      <fix>
+        Fix client subprotocol handling. (remm)
+      </fix>
     </changelog>
   </subsection>
   <subsection name="Web applications">



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to