fix: incorrect headers on the api (#802)

This commit is contained in:
Miguel Ribeiro
2025-04-26 13:03:51 +02:00
committed by GitHub
parent 852e25c79f
commit af68c11abf
14 changed files with 14 additions and 14 deletions

View File

@@ -35,7 +35,7 @@ Example response:
require_once '../../includes/connect_endpoint.php';
header('Content-Type: application/json, charset=UTF-8');
header('Content-Type: application/json; charset=UTF-8');
if ($_SERVER["REQUEST_METHOD"] === "POST" || $_SERVER["REQUEST_METHOD"] === "GET") {
// if the parameters are not set, return an error