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

View File

@@ -40,7 +40,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

View File

@@ -48,7 +48,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

View File

@@ -25,7 +25,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

View File

@@ -34,7 +34,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

View File

@@ -38,7 +38,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

View File

@@ -70,7 +70,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

View File

@@ -34,7 +34,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

View File

@@ -24,7 +24,7 @@ Example response:
require_once '../../includes/connect_endpoint.php';
require_once '../../includes/version.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

View File

@@ -10,7 +10,7 @@ It returns a downloadable VCAL file with the active subscriptions
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

View File

@@ -29,7 +29,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

View File

@@ -82,7 +82,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

View File

@@ -32,7 +32,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

View File

@@ -1,3 +1,3 @@
<?php
$version = "v2.52.1";
$version = "v2.52.2";
?>