From 36ebe69bf20413713e40cac601a668df4c12a32a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Baarnes?= Date: Mon, 8 Feb 2021 21:31:17 +0200 Subject: [PATCH] Update Backend on PHP.md Return HTTP 204 when chunk is not found, avoiding errors in browser console as per the README recommendation ( https://github.com/23/resumable.js#handling-get-or-test-requests ) --- samples/Backend on PHP.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/Backend on PHP.md b/samples/Backend on PHP.md index a45b6946..1fdbbb41 100644 --- a/samples/Backend on PHP.md +++ b/samples/Backend on PHP.md @@ -139,7 +139,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') { if (file_exists($chunk_file)) { header("HTTP/1.0 200 Ok"); } else { - header("HTTP/1.0 404 Not Found"); + header("HTTP/1.0 204 No Content"); } }