diff options
author | bbangert <devnull@localhost> | 2006-08-21 01:34:04 +0000 |
---|---|---|
committer | bbangert <devnull@localhost> | 2006-08-21 01:34:04 +0000 |
commit | 9411e014c3bc334e5b9d06976b01d360bfcc07e3 (patch) | |
tree | f69f3e53c80bfdee23702bdcdec1d56b700ab475 /paste/wsgiwrappers.py | |
parent | c655388eaf7eb746c4c0269048b48218308a416a (diff) | |
download | paste-9411e014c3bc334e5b9d06976b01d360bfcc07e3.tar.gz |
Fixing requested_with header name.
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 b1ec7bd..7eddc68 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('HTTP_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): |