Copy the more efficient HTTP header parser from QtNetwork
authorThiago Macieira <thiago.macieira@intel.com>
Thu, 8 May 2014 06:04:52 +0000 (23:04 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 8 May 2014 23:34:45 +0000 (01:34 +0200)
commita857bf189df748ec5cefb27b40448e05cdd60a45
tree27c71cd3c809993eff2ec96d9b347e657e1e737b
parent3a42807b0a3148b2fe13d96b6e495dd374a31c17
Copy the more efficient HTTP header parser from QtNetwork

The one from QtNetwork is more efficient, since it doesn't use regular
expressions. This also solves a use of uninitialised variables.

error: â€˜httpStatusCode’ may be used uninitialized in this function [-Werror=maybe-uninitialized]

Change-Id: Id7f203d971564651eb0bd63d3d54d074be947793
Reviewed-by: Kurt Pattyn <pattyn.kurt@gmail.com>
src/websockets/qwebsocket_p.cpp