summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2022-10-10 15:41:32 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2022-10-19 14:34:23 +0200
commit275b318cd55720b1106965c31e8d60619ae50ec9 (patch)
treef81ed0d0359021ba1981399dcff8aa4143f45a8c /ucb
parentfa5feda2f891651933703e029dcc757e47a6801f (diff)
statushack
Change-Id: Idbfacc858dd0180c40e86bbd6fc9b0084bd9ed2d
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-curl/CurlSession.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/ucb/source/ucp/webdav-curl/CurlSession.cxx b/ucb/source/ucp/webdav-curl/CurlSession.cxx
index 1ae16baa13b4..8e9c7acafeef 100644
--- a/ucb/source/ucp/webdav-curl/CurlSession.cxx
+++ b/ucb/source/ucp/webdav-curl/CurlSession.cxx
@@ -340,6 +340,7 @@ static int debug_callback(CURL* handle, curl_infotype type, char* data, size_t s
{
// unlike IN, this is all headers in one call
OString tmp(data, size);
+#if 0
sal_Int32 const start(tmp.indexOf("Authorization: "));
if (start != -1)
{
@@ -349,6 +350,7 @@ static int debug_callback(CURL* handle, curl_infotype type, char* data, size_t s
tmp = tmp.replaceAt(start + len, end - start - len,
OString::number(end - start - len) + " bytes redacted");
}
+#endif
SAL_INFO("ucb.ucp.webdav.curl", "CURLINFO_HEADER_OUT: " << handle << ": " << tmp);
return 0;
}
@@ -1425,7 +1427,7 @@ auto CurlProcessor::ProcessRequest(
ProcessHeaders(headers.HeaderFields.back().first));
// X-MSDAVEXT_Error see [MS-WEBDAVE] 2.2.3.1.9
auto const it(headerMap.find("x-msdavext_error"));
- if (it == headerMap.end() || !it->second.startsWith("917656;"))
+ if (false && (it == headerMap.end() || !it->second.startsWith("917656;")))
{
break;
}
@@ -1489,6 +1491,7 @@ auto CurlProcessor::ProcessRequest(
? CURLINFO_HTTPAUTH_AVAIL
: CURLINFO_PROXYAUTH_AVAIL,
&authAvail);
+ authAvail = 0;
assert(rc == CURLE_OK);
(void)rc;
if (statusCode == SC_FORBIDDEN)