Commit 38eefc85 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 http://webkit.org/b/60440.

BUG: 269694
FIXED-IN: 4.6.4
parent e672faca
...@@ -1095,6 +1095,7 @@ void TransferJob::slotFinished() ...@@ -1095,6 +1095,7 @@ void TransferJob::slotFinished()
istream >> specialcmd; istream >> specialcmd;
if (specialcmd == 1) // HTTP POST if (specialcmd == 1) // HTTP POST
{ {
d->m_outgoingMetaData.remove(QLatin1String("content-type"));
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