diff options
author | 2010-12-14 22:20:56 +0000 | |
---|---|---|
committer | 2010-12-14 22:20:56 +0000 | |
commit | dba963c0fb77b806e1a0bf4d8115fab55ef9460b (patch) | |
tree | 2522be298419c0670f724074e5acb8cdaf639e5b | |
parent | Chomp whitespace. (diff) | |
download | gentoo-ads-dba963c0fb77b806e1a0bf4d8115fab55ef9460b.tar.gz gentoo-ads-dba963c0fb77b806e1a0bf4d8115fab55ef9460b.tar.bz2 gentoo-ads-dba963c0fb77b806e1a0bf4d8115fab55ef9460b.zip |
Turn the full accept_langs code back on.
-rw-r--r-- | gentoo_ads/ads/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gentoo_ads/ads/views.py b/gentoo_ads/ads/views.py index 2abbd7e..261dffe 100644 --- a/gentoo_ads/ads/views.py +++ b/gentoo_ads/ads/views.py @@ -21,8 +21,8 @@ def _build_lang_array(request): accept_langs_raw = request.META[META_LANG_KEY] # Ignore priority for now, hopefully they are in the correct order # TODO: reorder per HTTP language RFC - #accept_langs = [re.sub(';q=[0-9.]+', '' ,_).strip() for _ in accept_langs_raw.split(',')] - accept_langs = [_.strip() for _ in accept_langs_raw.split(',')] + accept_langs = [re.sub(';q=[0-9.]+', '' ,_).strip() for _ in accept_langs_raw.split(',')] + #accept_langs = [_.strip() for _ in accept_langs_raw.split(',')] #accept_langs = accept_langs_raw.split(',') # Handle dialects for _ in accept_langs: |