Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge remote branch 'upstream/master'

  • Loading branch information...
commit 74e1070f424ff69f307b47b6928cf04c62cfe079 2 parents 3927ffe + fc7573b
sebleedelisle authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  app.php
2  app.php
View
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.