From: "usa (Usaku NAKAMURA)" <usa@garbagecollect.jp>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:51044] [ruby-trunk - Bug #7021][Assigned] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
Date: Fri, 21 Dec 2012 22:22:09 +0900 [thread overview]
Message-ID: <redmine.journal-34950.20121221222209@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-7021.20120914101546@ruby-lang.org
Issue #7021 has been updated by usa (Usaku NAKAMURA).
Status changed from Open to Assigned
----------------------------------------
Bug #7021: WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
https://bugs.ruby-lang.org/issues/7021#change-34950
Author: boris317 (shawn adams)
Status: Assigned
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/
next prev parent reply other threads:[~2012-12-21 13:29 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 ` [ruby-core:47530] " zzak (Zachary Scott)
2012-12-21 13:22 ` usa (Usaku NAKAMURA) [this message]
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-34950.20121221222209@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).