[ https://issues.apache.org/jira/browse/HTTPCORE-783?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17956409#comment-17956409 ]
Gary D. Gregory commented on HTTPCORE-783: ------------------------------------------ According to [https://www.rfc-editor.org/rfc/rfc9110.html#name-content-type,] the following are "equivalent": {noformat} text/html;charset=utf-8 Text/HTML;Charset="utf-8" text/html; charset="utf-8" text/html;charset=UTF-8 {noformat} {quote} The type and subtype tokens are case-insensitive. {quote} and problematically: {quote} Parameter values might or might not be case-sensitive, depending on the semantics of the parameter name. {quote} > ContentType should implement equals() and hashCode() > ---------------------------------------------------- > > Key: HTTPCORE-783 > URL: https://issues.apache.org/jira/browse/HTTPCORE-783 > Project: HttpComponents HttpCore > Issue Type: Bug > Components: HttpCore > Reporter: Gary D. Gregory > Priority: Major > > I find it confusing that {{ContentType}} doesn't implement {{equals()}} and > {{hashCode()}}. > Instead it implement a method called {{isSameMimeType(contentType))}} which > is documented to ... well, there's zero Javadoc. > I think we should implement {{equals()}} and {{hashCode()}} to either: > - Call {{super}} and Javadoc why > - Provide a "proper" implementation which could (initially) ignore parameters > (or not). -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@hc.apache.org For additional commands, e-mail: dev-h...@hc.apache.org