GraphQLHandler can get content type from parsed headers
@@ -304,8 +304,8 @@ public class GraphQLHandlerImpl implements GraphQLHandler {
}
private String getContentType(RoutingContext rc) {
- String contentType = rc.request().headers().get(HttpHeaders.CONTENT_TYPE);
- return contentType == null ? "application/json" : contentType.toLowerCase().split(";")[0];
+ String contentType = rc.parsedHeaders().contentType().value();
+ return contentType.isEmpty() ? "application/json" : contentType.toLowerCase();
}
private Map<String, Object> getVariablesFromQueryParam(RoutingContext rc) throws Exception {
