kio_http regression in 3.5.8

Harri Porten porten at froglogic.com
Tue Oct 16 15:52:13 BST 2007


Hi!

Since the update to the current 3.5 branch I am no longer able to log into 
an internal page anymore. The error printed out by the PHP module is:

    Warning: Cannot modify header information - headers already sent

I've identified revision 707413 changing kioslave/http/http.cc to be 
responsible:

   http://websvn.kde.org/branches/KDE/3.5/kdelibs/kioslave/http/http.cc?r1=707381&r2=707413

After applying the attached patch things work again. Too bad 3.5.8 has 
just been released :(

Harri.
-------------- next part --------------
Index: http.cc
===================================================================
--- http.cc	(revision 707413)
+++ http.cc	(working copy)
@@ -3412,9 +3412,11 @@
 
   } while (!m_bEOF && (len || noHeader) && (headerSize < maxHeaderSize) && (gets(buffer, sizeof(buffer)-1)));
 
+#if 0 
   // Send the current response before processing starts or it 
   // might never get sent...
   forwardHttpResponseHeader();
+#endif
 
   // Now process the HTTP/1.1 upgrade
   QStringList::Iterator opt = upgradeOffers.begin();


More information about the kfm-devel mailing list