diff options
author | bbangert <devnull@localhost> | 2006-08-20 23:45:25 +0000 |
---|---|---|
committer | bbangert <devnull@localhost> | 2006-08-20 23:45:25 +0000 |
commit | c655388eaf7eb746c4c0269048b48218308a416a (patch) | |
tree | 5df8eaa6991168f460087784ca3795e7768e7c38 /paste/wsgiwrappers.py | |
parent | da2ad3ee1f8388c5c3f31dec3c47a1fd68faa8fa (diff) | |
download | paste-c655388eaf7eb746c4c0269048b48218308a416a.tar.gz |
Fix bug in is_xhr, should be HTTP_ header.
Diffstat (limited to 'paste/wsgiwrappers.py')
-rw-r--r-- | paste/wsgiwrappers.py | 2 |
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): |