summaryrefslogtreecommitdiff
path: root/paste/wsgiwrappers.py
diff options
context:
space:
mode:
authorbbangert <devnull@localhost>2006-08-20 23:45:25 +0000
committerbbangert <devnull@localhost>2006-08-20 23:45:25 +0000
commitc655388eaf7eb746c4c0269048b48218308a416a (patch)
tree5df8eaa6991168f460087784ca3795e7768e7c38 /paste/wsgiwrappers.py
parentda2ad3ee1f8388c5c3f31dec3c47a1fd68faa8fa (diff)
downloadpaste-c655388eaf7eb746c4c0269048b48218308a416a.tar.gz
Fix bug in is_xhr, should be HTTP_ header.
Diffstat (limited to 'paste/wsgiwrappers.py')
-rw-r--r--paste/wsgiwrappers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/wsgiwrappers.py b/paste/wsgiwrappers.py
index 79cb8a6..b1ec7bd 100644
--- a/paste/wsgiwrappers.py
+++ b/paste/wsgiwrappers.py
@@ -60,7 +60,7 @@ class WSGIRequest(object):
def is_xhr(self):
"""Returns a boolean if X-Requested-With is present and a XMLHttpRequest"""
- return self.environ.get('X-Requested-With', '') == 'XMLHttpRequest'
+ return self.environ.get('HTTP_X-Requested-With', '') == 'XMLHttpRequest'
is_xhr = property(is_xhr, doc=is_xhr.__doc__)
def host(self):