Commit 4121b334 authored by Dawit Alemayehu's avatar Dawit Alemayehu
Browse files

Do not send content-type header on the subsequent GET request that occurs as a

result of a POST operation redirection.

Fixes bug for khtml. For kdewebkit, the fix needs to be done upstream and as
such as ticket has been opened there. See

BUG: 269694
FIXED-IN: 4.6.4

(cherry picked from commit 38eefc85)
parent 5552b1f6
...@@ -1058,6 +1058,7 @@ void TransferJob::slotFinished() ...@@ -1058,6 +1058,7 @@ void TransferJob::slotFinished()
istream >> specialcmd; istream >> specialcmd;
if (specialcmd == 1) // HTTP POST if (specialcmd == 1) // HTTP POST
{ {
addMetaData("cache","reload"); addMetaData("cache","reload");
d->m_packedArgs.truncate(0); d->m_packedArgs.truncate(0);
QDataStream stream( &d->m_packedArgs, QIODevice::WriteOnly ); QDataStream stream( &d->m_packedArgs, QIODevice::WriteOnly );
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment