ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
From: "zzak (Zachary Scott)" <zachary@zacharyscott.net>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:47530] [ruby-trunk - Bug #7021] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
Date: Fri, 14 Sep 2012 22:06:25 +0900	[thread overview]
Message-ID: <redmine.journal-29306.20120914220625@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-7021.20120914101546@ruby-lang.org


Issue #7021 has been updated by zzak (Zachary Scott).

Category set to lib
Assignee set to nahi (Hiroshi Nakamura)


----------------------------------------
Bug #7021: WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
https://bugs.ruby-lang.org/issues/7021#change-29306

Author: boris317 (shawn adams)
Status: Open
Priority: Normal
Assignee: nahi (Hiroshi Nakamura)
Category: lib
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin11.3.0]


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?


-- 
http://bugs.ruby-lang.org/

  parent reply	other threads:[~2012-09-14 13:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-14  1:15 [ruby-core:47521] [ruby-trunk - Bug #7021][Open] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values boris317 (shawn adams)
2012-09-14  1:30 ` [ruby-core:47522] [ruby-trunk - Bug #7021] " boris317 (shawn adams)
2012-09-14 13:06 ` zzak (Zachary Scott) [this message]
2012-12-21 13:22 ` [ruby-core:51044] [ruby-trunk - Bug #7021][Assigned] " usa (Usaku NAKAMURA)
2019-08-06 22:55 ` [ruby-core:94164] [Ruby master Bug#7021] " merch-redmine
2019-10-07 21:27 ` [ruby-core:95266] " merch-redmine

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.ruby-lang.org/en/community/mailing-lists/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=redmine.journal-29306.20120914220625@ruby-lang.org \
    --to=ruby-core@ruby-lang.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).