diff options
| -rw-r--r-- | pyramid/httpexceptions.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pyramid/httpexceptions.py b/pyramid/httpexceptions.py index 893795c11..e76f43c8a 100644 --- a/pyramid/httpexceptions.py +++ b/pyramid/httpexceptions.py @@ -249,9 +249,8 @@ ${body}''') accept_value = environ.get('HTTP_ACCEPT', '') accept = MIMEAccept(accept_value) # Attempt to match text/html or application/json, if those don't - # match, we will always have our default of text/plain - match = accept.best_match(['text/html', 'application/json'], - default_match='text/plain') + # match, we will fall through to defaulting to text/plain + match = accept.best_match(['text/html', 'application/json']) if match == 'text/html': self.content_type = 'text/html' |
