Make https requests fail fast when configured without ssl support
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Mon, 20 Feb 2012 16:18:29 +0000 (16:18 +0000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 21 Feb 2012 14:28:40 +0000 (15:28 +0100)
commit49a7c2fe6e905bc192008c13f08842e4b8134ff9
tree0a78365e06bce50178cb52f576e8e1e17af80eb8
parentae445b20fa2567f7e14d989f288edb69b0904433
Make https requests fail fast when configured without ssl support

Restored the Qt4 behaviour where attempting a https request using
QNetworkAccessManager fails with ProtocolUnsupportedError instead
of timing out or hanging.

Covered by existing autotests.

Task-number: QTBUG-17189
Change-Id: Iceb1ba6558c7d2b1af8ddf8d4ea9315a5b44d970
Reviewed-by: Richard J. Moore <rich@kde.org>
src/network/access/qhttpnetworkconnectionchannel.cpp
src/network/access/qnetworkaccessmanager.cpp