ignore leading spaces when checking for a suitable subprotocol

My Browsers send as Subprotocols e.g. chat, superchat, mySubprotocol (with spaces after the ,). Libwebsockets now checked if ' mySubprotocol' was equal to 'mySubprotocol' which failed. With this fix the leading space is ignored and uses 'mySubprotocol' for comparision.
This commit is contained in:
Tobias 2017-01-17 06:31:09 +08:00 committed by Andy Green
parent 2ee30ebdf1
commit 7270aebadf

Diff content is not available