varspool / Wrench

A simple PHP WebSocket implementation for PHP 7.1
Do What The F*ck You Want To Public License
596 stars 210 forks source link

http header "connection" may be case-insensitive #31

Closed feifengxlq closed 11 years ago

feifengxlq commented 11 years ago

strpos -> stripos lib/Wrench/Protocol/Protocol.php

dominics commented 11 years ago

Thanks. I was reading the request requirements in the RFC, not the processing requirements (which state that you MUST fail the connection if the header tokens don't meet a case-insensitive comparison, implying you should use a case-insensitive comparison in any case).