fix sendException logic

This commit is contained in:
Saw-jan
2023-01-06 12:21:19 +05:45
parent aae418c2ab
commit 6e68fae2c3
2 changed files with 2 additions and 2 deletions

View File

@@ -226,7 +226,7 @@ class HttpRequestHelper {
$client
);
if ($response->getStatusCode() >= 400) {
if ($response->getStatusCode() >= 400 && $response->getStatusCode() !== self::HTTP_TOO_EARLY) {
$sendExceptionHappened = true;
}

View File

@@ -28,7 +28,7 @@ Feature: delay post-processing of uploaded files
| /dav/spaces/%spaceid%/file.txt |
Scenario Outline: user sends PROPFIND request to the folder while its some files are still being processed
Scenario Outline: user sends PROPFIND request to the folder while files in the folder are still being processed
Given user "Alice" has created folder "my_data"
And user "Alice" has uploaded file with content "uploaded content" to "/my_data/file.txt"
When user "Alice" requests "<dav_path>" with "PROPFIND" without retrying