From f6f84bdd2cc41256426c0975715e68ff16987e65 Mon Sep 17 00:00:00 2001 From: Dave Shawley Date: Mon, 2 Nov 2020 09:21:08 -0500 Subject: [PATCH] 3.0.4: Reject invalid Content-Type headers. --- docs/history.rst | 7 ++++--- sprockets/mixins/mediatype/__init__.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/history.rst b/docs/history.rst index 45c60af..403f425 100644 --- a/docs/history.rst +++ b/docs/history.rst @@ -1,8 +1,8 @@ Version History =============== -Next Release ------------- +`3.0.4`_ (2 Nov 2020) +--------------------- - Return a "400 Bad Request" when an invalid Content-Type header is received instead of failing with an internal server error @@ -84,7 +84,8 @@ Next Release --------------------- - Initial Release -.. _Next Release: https://github.com/sprockets/sprockets.mixins.mediatype/compare/3.0.3...HEAD +.. _Next Release: https://github.com/sprockets/sprockets.mixins.mediatype/compare/3.0.4...HEAD +.. _3.0.4: https://github.com/sprockets/sprockets.mixins.mediatype/compare/3.0.3...3.0.4 .. _3.0.3: https://github.com/sprockets/sprockets.mixins.mediatype/compare/3.0.2...3.0.3 .. _3.0.2: https://github.com/sprockets/sprockets.mixins.mediatype/compare/3.0.1...3.0.2 .. _3.0.1: https://github.com/sprockets/sprockets.mixins.mediatype/compare/3.0.0...3.0.1 diff --git a/sprockets/mixins/mediatype/__init__.py b/sprockets/mixins/mediatype/__init__.py index 565a088..c53fec5 100644 --- a/sprockets/mixins/mediatype/__init__.py +++ b/sprockets/mixins/mediatype/__init__.py @@ -21,7 +21,7 @@ except ImportError as error: # noqa: F841 # pragma no cover set_default_content_type = _error_closure -version_info = (3, 0, 3) +version_info = (3, 0, 4) __version__ = '.'.join(str(x) for x in version_info) __all__ = ['ContentMixin', 'ContentSettings', 'add_binary_content_type',