Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E20B9200BF5 for ; Fri, 23 Dec 2016 11:21:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E0E47160B1D; Fri, 23 Dec 2016 10:21:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 63DF1160B1E for ; Fri, 23 Dec 2016 11:21:59 +0100 (CET) Received: (qmail 1299 invoked by uid 500); 23 Dec 2016 10:21:58 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 1187 invoked by uid 99); 23 Dec 2016 10:21:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 Dec 2016 10:21:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5B6412C1F56 for ; Fri, 23 Dec 2016 10:21:58 +0000 (UTC) Date: Fri, 23 Dec 2016 10:21:58 +0000 (UTC) From: "John Lewis (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (HTTPCORE-439) Contribute BasicHeader override of equals and hashcode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 23 Dec 2016 10:22:00 -0000 [ https://issues.apache.org/jira/browse/HTTPCORE-439?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Lewis closed HTTPCORE-439. ------------------------------- > 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.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org