Bert JW Regeer
2016-04-14 bee098d366c304ed8d3ecab382acd57bebbc9f5e
We don't use default_match, so remove it
1 files modified
5 ■■■■■ changed files
pyramid/httpexceptions.py 5 ●●●●● patch | view | raw | blame | history
pyramid/httpexceptions.py
@@ -249,9 +249,8 @@
            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'