diff options
author | Andrew Dolgov <[email protected]> | 2017-02-26 14:08:46 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-02-26 14:08:46 +0300 |
commit | 575f13609fceeb7ddb599787bef0e83342de8391 (patch) | |
tree | ce9fed31792304ee12819267720caa8c0a6dc1a6 /backend.php | |
parent | 6f0d0b811ad17f82acb2e798dba355d5b82af30d (diff) |
rewriting is no longer needed
Diffstat (limited to 'backend.php')
-rw-r--r-- | backend.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/backend.php b/backend.php index f603fbf..c7d7ebc 100644 --- a/backend.php +++ b/backend.php @@ -184,7 +184,8 @@ break; default: - print json_encode(["error" => "UNKNOWN_METHOD"]); + header($_SERVER["SERVER_PROTOCOL"]." 404 Not Found"); + echo "Method not found."; } |