Fix tst_QNetworkReply::httpWithNoCredentialUsage autotest
authorShane Kearns <ext-shane.2.kearns@nokia.com>
Mon, 5 Mar 2012 16:54:12 +0000 (16:54 +0000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 6 Mar 2012 17:24:09 +0000 (18:24 +0100)
commitc93f7b69486a0d12b475e31eeb699ae07aa928c2
tree19051b17ac9369e55a8cbc369a8c9f446b9a6b9f
parent299e7ffd6a8a91f1d4259b91d4a519c1933c5f33
Fix tst_QNetworkReply::httpWithNoCredentialUsage autotest

The test was testing the wrong thing, and passing even though
QNetworkRequest::AuthenticationReuseAttribute was not being
respected, until recently when I fixed username/password in URLs

Now the cache is properly bypassed when this attribute is set to
manual, and the autotest is updated to check this.

Change-Id: I87943515562d0b16b03504f0758ba265758d1c22
Reviewed-by: Martin Petersson <Martin.Petersson@nokia.com>
src/network/access/qnetworkaccessmanager.cpp
src/network/access/qnetworkaccessmanager_p.h
src/network/access/qnetworkreplyhttpimpl.cpp
tests/auto/network/access/qnetworkreply/tst_qnetworkreply.cpp