mirror of
https://github.com/ellite/Wallos.git
synced 2026-02-19 12:58:37 -06:00
fix: incorrect headers on the api (#802)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
<?php
|
||||
$version = "v2.52.1";
|
||||
$version = "v2.52.2";
|
||||
?>
|
||||
Reference in New Issue
Block a user