Skip to content

Commit

Permalink
Update api.php
Browse files Browse the repository at this point in the history
  • Loading branch information
gnh1201 authored Nov 14, 2024
1 parent a33000f commit 43ae649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

$results = fetch_search_results($opts, false);
if (array_key_exists("error", $results)) {
http_response_code(418); // I'm a teapot
http_response_code(500);
}
header("Content-Type: application/json");
echo json_encode($results);
Expand Down

0 comments on commit 43ae649

Please sign in to comment.