Skip to content

Commit

Permalink
Fixed Safari returning a blank page. Fixes #70
Browse files Browse the repository at this point in the history
  • Loading branch information
remy committed Mar 24, 2012
1 parent 6326028 commit fc7573b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.php
Expand Up @@ -34,7 +34,7 @@
$code_id = '';

// if it contains the x-requested-with header, or is a CORS request on GET only
$ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']) || (isset($_SERVER['HTTP_ORIGIN']) && $_SERVER['REQUEST_METHOD'] == 'GET');
$ajax = isset($_SERVER['HTTP_X_REQUESTED_WITH']) || (stripos($_SERVER['HTTP_ACCEPT'], 'application/json') !== false && $_SERVER['REQUEST_METHOD'] == 'GET');

$no_code_found = false;

Expand Down

0 comments on commit fc7573b

Please sign in to comment.