-
Bug
-
Resolution: Out of scope
-
Not Evaluated
-
None
-
5.5.0
-
None
-
Archlinux
https://bugreports.qt.io/browse/QTBUG-47266When setting custom headers via QNetworkRequest::setRawHeader, those changes aren't reflected in the network tab of the inspector, i.e. the data shown there doesn't match the data being sent - see the attached screenshot.
New headers don't get added, and existing ones don't get changed.
diff against the example browser to test this:
--- networkaccessmanager.cpp.bak 2015-07-16 19:14:19.015860639 +0200 +++ networkaccessmanager.cpp 2015-07-16 19:15:45.645860945 +0200 @@ -90,6 +90,8 @@ // this is a temporary hack until we properly use the pipelining flags from QtWebkit // pipeline everything! :) request.setAttribute(QNetworkRequest::HttpPipeliningAllowedAttribute, true); + request.setRawHeader(QByteArray("Referer"), QByteArray("foo")); + request.setRawHeader(QByteArray("X-Foobar"), QByteArray("bar")); return QNetworkAccessManager::createRequest(op, request, outgoingData); }