Skip to content

Commit

Permalink
Added status message for HTTP 460.
Browse files Browse the repository at this point in the history
  • Loading branch information
TCB13 committed Dec 19, 2018
1 parent 89ed836 commit 94baf00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 94baf00

Please sign in to comment.