io: use case insensitive check for Connection & Upgrade websock headers
commit33badfd1e3735b877e41939100511c65572be6b9
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 6 Sep 2017 13:49:41 +0000 (6 14:49 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 4 Oct 2017 12:21:53 +0000 (4 13:21 +0100)
tree78bf958819aa39e34757b508207650949a0b0c3d
parent3a3f8705962c8c8a47a9b981ffd5aab7274ad508
io: use case insensitive check for Connection & Upgrade websock headers

When checking the value of the Connection and Upgrade HTTP headers
the websock RFC (6455) requires the comparison to be case insensitive.
The Connection value should be an exact match not a substring.

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
io/channel-websock.c