[PATCH] HTTP ioslave keeping POST data when it shouldn't
Best, Jan-Pascal van
j.p.vanbest at tbm.tudelft.nl
Tue Jun 11 15:11:29 BST 2002
Hi all (especially Dawit),
Just found the patch by Dawit about persistent connections. It almost
solves my problem, in that it resets the POST buffer in some
circumstances and I'd like it to do that in more circumstances,
especially after webdav queries. It seems like the check for HTTP_POST
is not necessary. If it is removed, my webdav trouble disappears.
Authentication for webdav still works now.
Patch follows.
Any objections?
Cheers
Jan-Pascal
Index: http.cc
===================================================================
RCS file: /home/kde/kdelibs/kioslave/http/http.cc,v
retrieving revision 1.508
diff -u -3 -p -r1.508 http.cc
--- http.cc 2002/06/09 07:55:13 1.508
+++ http.cc 2002/06/11 14:04:53
@@ -181,7 +181,7 @@ void HTTPProtocol::resetConnectionSettin
{
// Reset the POST buffer unless the previous request
// was a POST action that required authentication.
- if (m_request.method == HTTP_POST && m_responseCode != 401 &&
+ if (m_responseCode != 401 &&
m_responseCode != 407)
m_bufPOST.resize(0);
More information about the kfm-devel
mailing list