diff options
| author | Ian Bicking <ianb@colorstudy.com> | 2009-06-04 01:29:20 +0000 |
|---|---|---|
| committer | Ian Bicking <ianb@colorstudy.com> | 2009-06-04 01:29:20 +0000 |
| commit | 90287f95aeca77b7a0305fbcb50a99b7ee7a7fbb (patch) | |
| tree | 764c796c3512dd1955b15f282ab204db34dcf83a /webob/acceptparse.py | |
| parent | ea67f29e412733560a06d95aa20306aacf7e22da (diff) | |
| download | webob-90287f95aeca77b7a0305fbcb50a99b7ee7a7fbb.tar.gz | |
Prefer types earlier in the list with req.accept.best_match(types)
Diffstat (limited to 'webob/acceptparse.py')
| -rw-r--r-- | webob/acceptparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webob/acceptparse.py b/webob/acceptparse.py index f967804..82f694a 100644 --- a/webob/acceptparse.py +++ b/webob/acceptparse.py @@ -156,7 +156,7 @@ class Accept(object): server_quality = 1 for item, quality in self._parsed: possible_quality = server_quality * quality - if possible_quality < best_quality: + if possible_quality <= best_quality: continue if self._match(item, match): best_quality = possible_quality |
