Open dave-shawley opened 3 years ago
https://github.com/sprockets/sprockets.mixins.mediatype/blob/4dbc74076dd31c05009f52fdac58c5fc72cc6fe0/sprockets/mixins/mediatype/content.py#L367-L371
If the default content type is unset, then content_type will be None and parse_content_type will raise a TypeError instead of a ValueError. In either case, we should be responding with a "client error".
content_type
None
parse_content_type
TypeError
ValueError
https://github.com/sprockets/sprockets.mixins.mediatype/blob/4dbc74076dd31c05009f52fdac58c5fc72cc6fe0/sprockets/mixins/mediatype/content.py#L367-L371
If the default content type is unset, then
content_type
will beNone
andparse_content_type
will raise aTypeError
instead of aValueError
. In either case, we should be responding with a "client error".