Use ietfparse.headers.parse_accept

Starting with ietfparse 1.3.0, parse_http_accept_header was marked as deprecated.
This commit is contained in:
Andrew Rabert 2017-06-08 10:14:32 -04:00
parent 64be643e3a
commit d4caccde26
2 changed files with 2 additions and 2 deletions

View file

@ -1,2 +1,2 @@
ietfparse>=1.2.2,<2
ietfparse>=1.4,<2
tornado>=3.2,<5

View file

@ -309,7 +309,7 @@ class ContentMixin(object):
"""Figure out what content type will be used in the response."""
if self._best_response_match is None:
settings = get_settings(self.application, force_instance=True)
acceptable = headers.parse_http_accept_header(
acceptable = headers.parse_accept(
self.request.headers.get(
'Accept',
settings.default_content_type