[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    =?utf-8?q?=5Bkdelibs/KDE/4=2E6=5D_kio/kio=3A_Do_not_send_content?=
From:       Dawit Alemayehu <adawit () kde ! org>
Date:       2011-05-07 19:36:13
Message-ID: 20110507193613.85318A60A4 () git ! kde ! org
[Download RAW message or body]

Git commit 38eefc85fa7182f89e7dc7905d41e745c275fce4 by Dawit Alemayehu.
Committed on 07/05/2011 at 21:26.
Pushed by adawit into branch 'KDE/4.6'.

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

M  +1    -0    kio/kio/job.cpp     

http://commits.kde.org/kdelibs/38eefc85fa7182f89e7dc7905d41e745c275fce4

diff --git a/kio/kio/job.cpp b/kio/kio/job.cpp
index d4491bc..7d905fb 100644
--- a/kio/kio/job.cpp
+++ b/kio/kio/job.cpp
@@ -1095,6 +1095,7 @@ void TransferJob::slotFinished()
                     istream >> specialcmd;
                     if (specialcmd == 1) // HTTP POST
                     {
+                      d->m_outgoingMetaData.remove(QLatin1String("content-type"));
                       addMetaData("cache","reload");
                       d->m_packedArgs.truncate(0);
                       QDataStream stream( &d->m_packedArgs, QIODevice::WriteOnly );

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic