From: merch-redmine@... Date: 2019-10-07T21:27:16+00:00 Subject: [ruby-core:95266] [Ruby master Bug#7021] WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values. 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/ Unsubscribe: