[ 
https://issues.apache.org/jira/browse/HTTPCORE-439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16291125#comment-16291125
 ] 

ASF subversion and git services commented on HTTPCORE-439:
----------------------------------------------------------

Commit 72063bbcacaa4b5b2410e3f614d515c251a333f5 in httpcomponents-core's branch 
refs/heads/master from [~garydgregory]
[ https://git-wip-us.apache.org/repos/asf?p=httpcomponents-core.git;h=72063bb ]

[HTTPCORE-499] Make interface Header extend NameValuePair. BasicHeader
does not extend BasicNameValuePair. This commit brings back hashCode()
and equals() from HTTPCORE-439
(a193709b785373576ab72de4469630b59d985eb5) which might not be all that
good in retrospect of the discussion in HTTPCORE-499.


> Contribute BasicHeader override of equals() and hashCode()
> ----------------------------------------------------------
>
>                 Key: HTTPCORE-439
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-439
>             Project: HttpComponents HttpCore
>          Issue Type: Improvement
>          Components: Contrib, HttpCore
>    Affects Versions: 5.0-alpha2
>         Environment: All
>            Reporter: John Lewis
>             Fix For: 5.0-alpha2
>
>
> When removing headers from a HeaderGroup, the header is only removed if the 
> header you are trying to remove is an object in the header list.  It seems it 
> would be better if headers were removed that matched the name and value of 
> one of the objects in the list.  To accomplish this, I have overridden the 
> equals and hashCode methods in BasicHeader.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to