summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorMichael Stahl <michael.stahl@allotropia.de>2022-07-19 14:12:38 +0200
committerMichael Stahl <michael.stahl@allotropia.de>2022-07-19 14:23:59 +0200
commit9352ba337a84672a0ba60651023422de88105456 (patch)
treeb3c983d0981aee04decf00434f973a70d93e18d9 /ucb
parent3660ee6e178abc86228a70cc9394c1ad0efd78b9 (diff)
ucb: webdav-curl: try to auth on 403
This is just for testing, don't ship. Change-Id: Ic2344c61cbe3cf419b698be526a20388c0ef4f37
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/webdav-curl/CurlSession.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/ucb/source/ucp/webdav-curl/CurlSession.cxx b/ucb/source/ucp/webdav-curl/CurlSession.cxx
index 4fe05ab97e72..c3fd76062e2c 100644
--- a/ucb/source/ucp/webdav-curl/CurlSession.cxx
+++ b/ucb/source/ucp/webdav-curl/CurlSession.cxx
@@ -1373,6 +1373,12 @@ auto CurlProcessor::ProcessRequest(
}
break;
}
+ case SC_FORBIDDEN: // treat as 401, just for testing!
+ if (rSession.m_isAuthenticated)
+ {
+ break;
+ }
+ [[fallthrough]];
case SC_UNAUTHORIZED:
case SC_PROXY_AUTHENTICATION_REQUIRED:
{