diff --git a/src/ioslaves/http/http.cpp b/src/ioslaves/http/http.cpp --- a/src/ioslaves/http/http.cpp +++ b/src/ioslaves/http/http.cpp @@ -2592,7 +2592,7 @@ // we have cached credentials to avoid the extra roundtrip where possible. header += authenticationHeader(); - if (m_protocol == "webdav" || m_protocol == "webdavs") { + if (hasDavData || m_protocol == "webdav" || m_protocol == "webdavs") { header += davProcessLocks(); // add extra webdav headers, if supplied