We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef9dc14 commit fab1e42Copy full SHA for fab1e42
src/Controllers/ApiController.php
@@ -40,7 +40,9 @@ public function init()
40
exit;
41
}
42
43
- if (strpos($this->request->getHeader('Content-Type'), 'application/json') !== false) {
+ $contentType = (string) $this->request->getHeader('Content-Type');
44
+
45
+ if (strpos($contentType, 'application/json') !== false) {
46
$input = json_decode(file_get_contents("php://input"), true);
47
48
if ($input) {
0 commit comments