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 00AB2200BF8 for ; Thu, 29 Dec 2016 16:27:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F1B77160B15; Thu, 29 Dec 2016 15:26: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 68D7A160B2D for ; Thu, 29 Dec 2016 16:26:59 +0100 (CET) Received: (qmail 99307 invoked by uid 500); 29 Dec 2016 15:26: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 99249 invoked by uid 99); 29 Dec 2016 15:26:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Dec 2016 15:26:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 550922C1F54 for ; Thu, 29 Dec 2016 15:26:58 +0000 (UTC) Date: Thu, 29 Dec 2016 15:26:58 +0000 (UTC) From: "Julian Reschke (JIRA)" To: dev@hc.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HTTPCLIENT-1006) BrowserCompatSpec: don't trim " around cookie value MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 29 Dec 2016 15:27:00 -0000 [ https://issues.apache.org/jira/browse/HTTPCLIENT-1006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15785520#comment-15785520 ] Julian Reschke commented on HTTPCLIENT-1006: -------------------------------------------- Right. The DQUOTEs are optional, but if they are there, they are part of the cookie-value. (and yes, that's a very stupid way to do things, but we're talking about cookies after all) > BrowserCompatSpec: don't trim " around cookie value > --------------------------------------------------- > > Key: HTTPCLIENT-1006 > URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1006 > Project: HttpComponents HttpClient > Issue Type: Bug > Components: HttpClient (classic) > Affects Versions: 4.0.2 > Reporter: Marc Guillemot > > If the server sends a cookie header like: > Set-Cookie: first="hello world" > then HttpClient parses it as cookie with value >hello world<, wrongly removing the leading and trailing quotes. The incorrect quote removal occurs in BasicHeaderValueParser. -- 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