Author: remy.maucherat(a)jboss.com
Date: 2015-08-26 03:41:16 -0400 (Wed, 26 Aug 2015)
New Revision: 2622
Modified:
branches/7.5.x/src/main/java/org/apache/tomcat/websocket/Util.java
Log:
BZ1242359: Allow custom codes.
Modified: branches/7.5.x/src/main/java/org/apache/tomcat/websocket/Util.java
===================================================================
--- branches/7.5.x/src/main/java/org/apache/tomcat/websocket/Util.java 2015-08-26 07:34:36
UTC (rev 2621)
+++ branches/7.5.x/src/main/java/org/apache/tomcat/websocket/Util.java 2015-08-26 07:41:16
UTC (rev 2622)
@@ -84,7 +84,7 @@
static CloseCode getCloseCode(int code) {
if (code > 2999 && code < 5000) {
- return CloseCodes.NORMAL_CLOSURE;
+ return CloseCodes.getCloseCode(code);
}
switch (code) {
case 1000:
Show replies by date