src/main/java/org/apache/sling/api/request/builder/impl/SlingHttpServletResponseResultImpl.java [109:120]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void setContentType(final String type) {
        if (this.printWriter == null) {
            final int pos = type == null ? -1 : type.indexOf(SlingHttpServletRequestBuilderImpl.CHARSET_SEPARATOR);
            if (pos != -1) {
                this.contentType = type.substring(0, pos);
                this.characterEncoding =
                        type.substring(pos + SlingHttpServletRequestBuilderImpl.CHARSET_SEPARATOR.length());
            } else {
                this.contentType = type;
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/main/java/org/apache/sling/api/request/builder/impl/SlingJakartaHttpServletResponseResultImpl.java [107:118]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public void setContentType(final String type) {
        if (this.printWriter == null) {
            final int pos = type == null ? -1 : type.indexOf(SlingHttpServletRequestBuilderImpl.CHARSET_SEPARATOR);
            if (pos != -1) {
                this.contentType = type.substring(0, pos);
                this.characterEncoding =
                        type.substring(pos + SlingHttpServletRequestBuilderImpl.CHARSET_SEPARATOR.length());
            } else {
                this.contentType = type;
            }
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



