WEBrick::HTTPUtils.parse_header "normalizing" white space of cookie values.
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?
Updated by boris317 (shawn adams) almost 10 years ago
I forgot to add this in the description here is the style of cookie that is giving me issues:
There are two spaces between and FOO and BAR and its important that they stay that way.