https://src.bluestatic.org
/
hoplite.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4c7d1e
)
Check the right header for X-Requested-With
author
Robert Sesek <rsesek@bluestatic.org>
Sun, 7 Aug 2011 07:02:39 +0000
(
03:02
-0400)
committer
Robert Sesek <rsesek@bluestatic.org>
Sun, 7 Aug 2011 07:02:39 +0000
(
03:02
-0400)
http/output_filter.php
patch
|
blob
|
history
diff --git
a/http/output_filter.php
b/http/output_filter.php
index 2d97bcf740fc63d6fb05796eefa4d15d17b0c8af..79031ce62ef7d025b3911a51d7a382c7429a014a 100644
(file)
--- 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.