tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From p...@apache.org
Subject svn commit: r1310694 - /tomcat/tc7.0.x/trunk/java/org/apache/catalina/websocket/WebSocketServlet.java
Date Sat, 07 Apr 2012 08:21:35 GMT
Author: pero
Date: Sat Apr  7 08:21:34 2012
New Revision: 1310694

URL: http://svn.apache.org/viewvc?rev=1310694&view=rev
Log:
Send header with uppercase header

Modified:
    tomcat/tc7.0.x/trunk/java/org/apache/catalina/websocket/WebSocketServlet.java

Modified: tomcat/tc7.0.x/trunk/java/org/apache/catalina/websocket/WebSocketServlet.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/websocket/WebSocketServlet.java?rev=1310694&r1=1310693&r2=1310694&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/catalina/websocket/WebSocketServlet.java (original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/catalina/websocket/WebSocketServlet.java Sat Apr
 7 08:21:34 2012
@@ -111,8 +111,8 @@ public abstract class WebSocketServlet e
         //      data present when the frame is fragmented.
 
         // If we got this far, all is good. Accept the connection.
-        resp.setHeader("upgrade", "websocket");
-        resp.setHeader("connection", "upgrade");
+        resp.setHeader("Upgrade", "websocket");
+        resp.setHeader("Connection", "upgrade");
         resp.setHeader("Sec-WebSocket-Accept", getWebSocketAccept(key));
         if (subProtocol != null) {
             resp.setHeader("Sec-WebSocket-Protocol", subProtocol);



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


Mime
View raw message