mirror of
https://github.com/sprockets/sprockets.mixins.mediatype.git
synced 2024-12-28 11:24:12 +00:00
Use ietfparse.headers.parse_accept
Starting with ietfparse 1.3.0, parse_http_accept_header was marked as deprecated.
This commit is contained in:
parent
64be643e3a
commit
d4caccde26
2 changed files with 2 additions and 2 deletions
|
@ -1,2 +1,2 @@
|
|||
ietfparse>=1.2.2,<2
|
||||
ietfparse>=1.4,<2
|
||||
tornado>=3.2,<5
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue