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 @@ -172,7 +172,8 @@ if (!header.contains(QLatin1Char(':')) || header.startsWith(QLatin1String("host"), Qt::CaseInsensitive) || header.startsWith(QLatin1String("proxy-authorization"), Qt::CaseInsensitive) || - header.startsWith(QLatin1String("via"), Qt::CaseInsensitive)) { + header.startsWith(QLatin1String("via"), Qt::CaseInsensitive) || + header.startsWith(QLatin1String("depth"), Qt::CaseInsensitive)) { continue; } @@ -2599,7 +2600,7 @@ davHeader += metaData(QStringLiteral("davHeader")); // Set content type of webdav data - if (hasDavData) { + if (hasDavData && !header.contains(QLatin1String("Content-Type: "))) { davHeader += QStringLiteral("Content-Type: text/xml; charset=utf-8\r\n"); }