summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert JW Regeer <bertjw@regeer.org>2016-04-14 01:08:49 -0600
committerBert JW Regeer <bertjw@regeer.org>2016-04-14 01:08:49 -0600
commitbee098d366c304ed8d3ecab382acd57bebbc9f5e (patch)
treed2694b503e932604f417154ce60cc313d566bea7
parentd5e3a7cc63135c26563d9fad93e67856ade726d4 (diff)
downloadpyramid-bee098d366c304ed8d3ecab382acd57bebbc9f5e.tar.gz
pyramid-bee098d366c304ed8d3ecab382acd57bebbc9f5e.tar.bz2
pyramid-bee098d366c304ed8d3ecab382acd57bebbc9f5e.zip
We don't use default_match, so remove it
-rw-r--r--pyramid/httpexceptions.py5
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'