summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyramid/httpexceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyramid/httpexceptions.py b/pyramid/httpexceptions.py
index ef1e5c144..5500a0a29 100644
--- a/pyramid/httpexceptions.py
+++ b/pyramid/httpexceptions.py
@@ -130,7 +130,7 @@ from string import Template
from zope.interface import implementer
from webob import html_escape as _html_escape
-from webob.acceptparse import Accept
+from webob.acceptparse import MIMEAccept
from pyramid.compat import (
class_types,
@@ -247,7 +247,7 @@ ${body}''')
html_comment = ''
comment = self.comment or ''
accept_value = environ.get('HTTP_ACCEPT', '')
- accept = Accept(accept_value)
+ accept = MIMEAccept(accept_value)
match = accept.best_match(
['application/json',
'text/html',