From 8c17aa532a994e182c390039c277d9ffb8404ac6 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 7 Aug 2011 03:02:39 -0400 Subject: [PATCH] Check the right header for X-Requested-With --- http/output_filter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/output_filter.php b/http/output_filter.php index 2d97bcf..79031ce 100644 --- a/http/output_filter.php +++ b/http/output_filter.php @@ -104,7 +104,7 @@ class OutputFilter // heuristics. // If this was from an XHR, assume JSON. - if (!$type && isset($request->data['_SERVER']['X_REQUESTED_WITH'])) + if (!$type && isset($request->data['_SERVER']['HTTP_X_REQUESTED_WITH'])) $type = 'json'; // Check if an Action specified an overriding response type. -- 2.43.5