diff --git a/src/plone/rest/negotiation.py b/src/plone/rest/negotiation.py index 7a47d5a..d0aa204 100644 --- a/src/plone/rest/negotiation.py +++ b/src/plone/rest/negotiation.py @@ -13,7 +13,7 @@ def parse_accept_header(accept): for media_range in accept.split(","): media_type = media_range.split(";")[0].strip() if "/" in media_type: - type_, subtype = media_type.split("/") + type_, subtype = media_type.split("/", 1) media_types.append((type_, subtype)) return media_types