diff options
| -rw-r--r-- | pyramid/httpexceptions.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/httpexceptions.py b/pyramid/httpexceptions.py index 213e4b980..422f2f27f 100644 --- a/pyramid/httpexceptions.py +++ b/pyramid/httpexceptions.py @@ -249,9 +249,9 @@ ${body}''') accept_value = environ.get('HTTP_ACCEPT', '') accept = MIMEAccept(accept_value) match = accept.best_match( - ['application/json', + ['text/plain', 'text/html', - 'text/plain'], default_match='text/plain') + 'application/json'], default_match='text/plain') if match == 'text/html': self.content_type = 'text/html' |
