Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix HttpServer::isWebSocket to detect lowercase "upgrade" connection …
…value (#594) * Fix HttpServer::isWebSocket to detect lowercase "upgrade" connection value The websocket library boost-beast sends the following http header: 'Connection: upgrade', while almost anything else uses: 'Connection: Upgrade'. Drogon used to only recognize the latter as websocket request, now it recognizes both. * Fix HttpServer::isWebSocket to detect case-insenstive "websocket" upgrade value This was a bug as previously, we only accepted the exact string "websocket", although the standard specifies that it should be case-insensetive. Co-authored-by: VayuDev <vayudev@protonmail.com>
- Loading branch information