Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.

Commit

Permalink
Server: disable empty request warning
Browse files Browse the repository at this point in the history
  • Loading branch information
M66B committed Aug 30, 2014
1 parent 67831e6 commit a604dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a604dbb

Please sign in to comment.