Fix WebDAV directory renaming if KeepAlive is off
Reset m_request.isKeepAlive to true if responseCode == 301
during renaming a directory. Otherwise the connection is gone
and renaming fails, if the server is configured 'KeepAlive off'.
After sending the not quite correct request 'MOVE dirurl'
without trailing '/', an Apache webserver answers with a
redirection (301) providing the correct dirurl with trailing
'/'. But in this case the session is not reset, so if the
server sets isKeepAlive to false the connection is ended
- Configure an Apache http server providing WebDAV and set KeepAlive to 'off'.
- In dolphin, navigate to webdav://webdavserver/ and try to rename a directory there.
- Without this patch the connection to webdavserver is broken (error message) and renaming fails, with this patch applied it works.
Reviewed By: sitter
Differential Revision: https://phabricator.kde.org/D19786