Skip to content

Commit

Permalink
Merge pull request #16 from nvllsvm/master
Browse files Browse the repository at this point in the history
Use ietfparse.headers.parse_accept
  • Loading branch information
dave-shawley committed Jun 8, 2017
2 parents 64be643 + d4caccd commit 25e0e39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requires/installation.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
ietfparse>=1.2.2,<2
ietfparse>=1.4,<2
tornado>=3.2,<5
2 changes: 1 addition & 1 deletion sprockets/mixins/mediatype/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def get_response_content_type(self):
"""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
Expand Down

0 comments on commit 25e0e39

Please sign in to comment.