diff options
author | bbangert <devnull@localhost> | 2006-08-20 22:22:34 +0000 |
---|---|---|
committer | bbangert <devnull@localhost> | 2006-08-20 22:22:34 +0000 |
commit | 4b4cc4898e0bea85ba5ff43000a1dd2b373aa843 (patch) | |
tree | c8303d0d00f23d4ef01706283bb668f4dfea868e /paste/wsgiwrappers.py | |
parent | 4a2d8b4451c1b1cb518d1c52d9937350ce3b4cf3 (diff) | |
download | paste-4b4cc4898e0bea85ba5ff43000a1dd2b373aa843.tar.gz |
Adding xhr attribute to WSGIRequest object.
Diffstat (limited to 'paste/wsgiwrappers.py')
-rw-r--r-- | paste/wsgiwrappers.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/paste/wsgiwrappers.py b/paste/wsgiwrappers.py index 84a0924..660c79d 100644 --- a/paste/wsgiwrappers.py +++ b/paste/wsgiwrappers.py @@ -57,6 +57,7 @@ class WSGIRequest(object): script_name = environ_getter('SCRIPT_NAME') path_info = environ_getter('PATH_INFO') urlvars = environ_getter('paste.urlvars', default_factory=dict) + xhr = environ_getter('X-Requested-With', default=False) def host(self): """Host name provided in HTTP_HOST, with fall-back to SERVER_NAME""" |