From bee098d366c304ed8d3ecab382acd57bebbc9f5e Mon Sep 17 00:00:00 2001 From: Bert JW Regeer Date: Thu, 14 Apr 2016 01:08:49 -0600 Subject: We don't use default_match, so remove it --- pyramid/httpexceptions.py | 5 ++--- 1 file 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' -- cgit v1.2.3