test: wait post-processing to finish for MKCOL requests (#2092)

Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
This commit is contained in:
Sawjan Gurung
2025-12-30 14:58:17 +05:45
committed by GitHub
parent 38786ab291
commit 8d092b49a9

View File

@@ -198,7 +198,7 @@ class HttpRequestHelper {
// wait for post-processing to finish if applicable
if (WebdavHelper::isDAVRequest($url)
&& \str_starts_with($url, OcHelper::getServerUrl())
&& \in_array($method, ["PUT", "MOVE", "COPY"])
&& \in_array($method, ["PUT", "MOVE", "COPY", "MKCOL"])
&& \in_array($response->getStatusCode(), [Response::HTTP_CREATED, Response::HTTP_NO_CONTENT])
&& OcConfigHelper::getPostProcessingDelay() === 0
) {