diff options
author | ianb <devnull@localhost> | 2007-05-25 02:43:35 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2007-05-25 02:43:35 +0000 |
commit | af3dff0a8d39285b04ec2ce54b6f9e971682152d (patch) | |
tree | f45f8cff2c1e935ddc2e822cf1b8bc5fe67806b9 /paste/httpheaders.py | |
parent | c105d8bfcc0e9762663b4a4d22a66deea2f82ac8 (diff) | |
download | paste-af3dff0a8d39285b04ec2ce54b6f9e971682152d.tar.gz |
Fix for request.languages, which didn't pass the right value to httpheaders. Filter out empty languages from httpheaders.ACCEPT_LANGUAGE.
Diffstat (limited to 'paste/httpheaders.py')
-rw-r--r-- | paste/httpheaders.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paste/httpheaders.py b/paste/httpheaders.py index c216783..62cc4bd 100644 --- a/paste/httpheaders.py +++ b/paste/httpheaders.py @@ -951,7 +951,7 @@ class _AcceptLanguage(_MultiValueHeader): header = self.__call__(*args, **kwargs) if header is None: return [] - langs = header.split(",") + langs = [v for v in header.split(",") if v] qs = [] for lang in langs: pieces = lang.split(";") |