Style API : Unknown style format when charset is in content-type

Description

When using the REST API /workspaces/<ws>/styles/<s> to edit styles, if the
content type header contains the charset, e.g. 'application/vnd.ogc.sld+xml;charset=UTF-8', it raises this error :

org.geoserver.rest.RestException 400 BAD_REQUEST: Unknown style format
'application/vnd.ogc.sld+xml;charset=UTF-8'
at
org.geoserver.rest.catalog.StyleController.stylePut(StyleController.java:446)

It used to work with GeoServer v2.11.x

Environment

None

Status

Assignee

Unassigned

Reporter

Simon Chatillon

Triage

None

Fix versions

Affects versions

Priority

Highest
Configure