From 94baf00a270da4f89aeb54f5254edd3551c78b84 Mon Sep 17 00:00:00 2001 From: TCB13 Date: Wed, 19 Dec 2018 13:04:35 +0000 Subject: [PATCH] Added status message for HTTP 460. --- src/Server.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server.php b/src/Server.php index b2b4fbe..2e73668 100644 --- a/src/Server.php +++ b/src/Server.php @@ -243,7 +243,7 @@ protected function handlePATCH(): ResponseInterface hash_update_stream($hashContext, $this->stream); $localChecksum = base64_encode(hash_final($hashContext, true)); if ($localChecksum !== $checksum->value) - return $this->response->withStatus(460) + return $this->response->withStatus(460, "Checksum Mismatch") ->withHeader("Upload-Offset", filesize($this->file)); rewind($this->stream);