add .toLowerCase() to req.get("Upgrade") and req.get("Connection") c…#4
add .toLowerCase() to req.get("Upgrade") and req.get("Connection") c…#4mhabou wants to merge 2 commits intoblinkdog:masterfrom
Conversation
…ecks to support IE browsers before this change i got this error network error 12152 in IE browsers Hope this commit help someone
|
Thank you for the PR @Dayssam. Full disclosure: I don't have a Windows box, so I can't test this in IE myself. I rely upon you to know if it actually works or not. :-) && checkContains(req.get("Upgrade").toLowerCase(), "websocket")
&& checkContains(req.get("Connection").toLowerCase(), "Upgrade")I do want to add this, but I'd rather do it like this: && checkContainsIgnoreCase(req.get("Upgrade"), "websocket")
&& checkContainsIgnoreCase(req.get("Connection"), "Upgrade")
The However, the code This is why I'd think to make a I don't have time to do that right this second, but I'll take a look as soon as I can. Thanks again @Dayssam! |
|
I created a new function checkContainsIgnoreCase to handle that Thank you very much i have an other question i'm using JAVA 6 , so i c'ant use java.nio.charset.StandardCharsets; for the received message i got it char by char in http://www.websocket.org/echo.html
and in my example i got the first char of the received message WebSocket Rocks Any idea ?? |
Add .toLowerCase() to req.get("Upgrade") and req.get("Connection") checks to support IE browsers
before this change i got this error
network error 12152 in IE browsers
Hope this commit help someone