From a604dbbc38c8e4a480a11aebcefb5e53c53c416b Mon Sep 17 00:00:00 2001 From: M66B Date: Sat, 30 Aug 2014 15:02:54 +0200 Subject: [PATCH] Server: disable empty request warning --- server/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.php b/server/index.php index d5c52c508..667dcef3e 100644 --- a/server/index.php +++ b/server/index.php @@ -42,7 +42,7 @@ function log_error($message, $my_email, $data = null) { $body = file_get_contents('php://input'); $data = json_decode($body); if (empty($body) || empty($data)) { - log_error('json: empty request', $my_email, $data); + //log_error('json: empty request', $my_email, $data); header('Content-Type: application/json'); echo json_encode(array('ok' => false, 'errno' => 101, 'error' => 'Empty request')); exit();