private final String charset;
public ContentType(String type, String subType, String charset) {
this.type = type;
this.subType = subType;
this.charset = charset;
<BUG>}
public static ContentType of(Response response) {
return parse(response.header(CONTENT_TYPE));

}
public static ContentType of(Request request) {
return parse(request.header(CONTENT_TYPE));</BUG>
}

private final String charset;
public ContentType(String type, String subType, String charset) {
this.type = type;
this.subType = subType;
this.charset = charset;
}
public static ContentType of(Request request) {
String header = request.header(CONTENT_TYPE);
return header != null ? parse(header) : null;
}
public static ContentType of(Response response) {
String header = response.header(CONTENT_TYPE);
return header != null ? parse(header) : null;
}
