Bug 53021

Summary: Minor bug in WebSocketServlet#headerContainsToken
Product: Tomcat 7 Reporter: mgrigorov <mgrigorov>
Component: CatalinaAssignee: Tomcat Developers Mailing List <dev>
Severity: normal CC: mgrigorov
Priority: P2    
Version: trunk   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Attachments: headerContainsToken fix

Description mgrigorov 2012-04-01 14:47:56 UTC
There is a minor bug in WebSocketServlet#headerContainsToken(HttpServletRequest, String, String) method. It always returns 'true'. 
The second return (at the bottom of the method body) should return 'false', i.e. there is no match.
Comment 1 Johno Crawford 2012-04-01 20:20:54 UTC
Created attachment 28525 [details]
headerContainsToken fix
Comment 2 Mark Thomas 2012-04-07 09:13:55 UTC
Fixed in trunk and 7.0.x and will be included in 7.0.28 onwards.