From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 8E3691F4BE for ; Mon, 7 Oct 2019 21:27:40 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id BACED1209F6; Tue, 8 Oct 2019 06:27:25 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 5F6391209F6 for ; Tue, 8 Oct 2019 06:27:15 +0900 (JST) Received: by filter0178p3mdw1.sendgrid.net with SMTP id filter0178p3mdw1-27731-5D9BADB3-7E 2019-10-07 21:27:15.999709882 +0000 UTC m=+356253.318562146 Received: from herokuapp.com (unknown [54.158.92.1]) by ismtpd0029p1mdw1.sendgrid.net (SG) with ESMTP id HKzum84yQ6GzOqMGaHuE_g for ; Mon, 07 Oct 2019 21:27:15.915 +0000 (UTC) Date: Mon, 07 Oct 2019 21:27:16 +0000 (UTC) From: merch-redmine@jeremyevans.net Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 70853 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 7021 X-Redmine-Issue-Author: boris317 X-Redmine-Issue-Assignee: nahi X-Redmine-Sender: jeremyevans0 X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: =?us-ascii?Q?RVE3t853K5scBhbmJHUzZTFFeVC=2FZSUmHZ0Dc+26wcEi2CTgsF1oz0wTSSxGGN?= =?us-ascii?Q?BIO7uRuAKAxeYfZZrTVjma1HDH778sltAaHZsDF?= =?us-ascii?Q?=2FAUw6QLJHRkU5Fr5LulDNnqtGBmwZFMLrht3x40?= =?us-ascii?Q?PBRiZQ76h4j6eOY0PAYAhCJaqfcU6DjPvAIvvU2?= =?us-ascii?Q?O7328y8GAGtAAPNg8aCZ8QxrMAWtyp6SBXg=3D=3D?= To: ruby-core@ruby-lang.org X-ML-Name: ruby-core X-Mail-Count: 95266 Subject: [ruby-core:95266] [Ruby master Bug#7021] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values. X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #7021 has been updated by jeremyevans0 (Jeremy Evans). Status changed from Assigned to Closed Pull request merged: https://github.com/ruby/webrick/pull/23 ---------------------------------------- Bug #7021: WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values. https://bugs.ruby-lang.org/issues/7021#change-81943 * Author: boris317 (shawn adams) * Status: Closed * Priority: Normal * Assignee: nahi (Hiroshi Nakamura) * Target version: * ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0] * Backport: ---------------------------------------- parse_header calls value.gsub!(/\s+/, " ") on ALL header values. I am using a web framework that runs on WEBrick as an HTTP proxy. When the cookies pass through the proxy the whitespace is normalized which is actually breaking the outgoing service call. There is a length "flag" in the cookie and stripping any whitespace from it breaks that. Is it intended behavior to normalize whitespace in request cookie values? -- https://bugs.ruby-lang.org/