From f2d054903deaba35382dcc3d02edec80d6666553 Mon Sep 17 00:00:00 2001 From: aspaseltiner-vimeo Date: Sat, 17 May 2025 11:46:15 -0400 Subject: [PATCH] Client::sendHeadRequest: allow 204 status code --- src/Tus/Client.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tus/Client.php b/src/Tus/Client.php index d771b84..c0b43ad 100644 --- a/src/Tus/Client.php +++ b/src/Tus/Client.php @@ -594,7 +594,7 @@ protected function sendHeadRequest(): int $response = $this->getClient()->head($this->getUrl()); $statusCode = $response->getStatusCode(); - if (HttpResponse::HTTP_OK !== $statusCode) { + if (HttpResponse::HTTP_OK !== $statusCode || HttpResponse::HTTP_NO_CONTENT !== $statusCode) { throw new FileException('File not found.'); }