Skip to content

Commit

Permalink
Merge pull request #383 from gabrieljenik/patch-20
Browse files Browse the repository at this point in the history
Fixed issue #10029: When sending AJAX calls from Firefox, RemoteControl doesn't respond
  • Loading branch information
c-schmitz committed Nov 13, 2015
2 parents cea6677 + 1b8c98e commit 687ae67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/libraries/LSjsonRPCServer.php
Expand Up @@ -14,7 +14,7 @@ public static function handle($object) {
if (
$_SERVER['REQUEST_METHOD'] != 'POST' ||
empty($_SERVER['CONTENT_TYPE']) ||
$_SERVER['CONTENT_TYPE'] != 'application/json'
strpos($_SERVER['CONTENT_TYPE'], "application/json") === FALSE
) {
// This is not a JSON-RPC request
return false;
Expand Down Expand Up @@ -65,4 +65,4 @@ public static function handle($object) {
return true;
}
}
?>
?>

0 comments on commit 687ae67

Please sign in to comment.