Actions
Bug #2124
closedCGI module Set-Cookie header parsing
Status:
Rejected
Assignee:
-
ruby -v:
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]
Description
=begin
Having a couple issues with parsing Set-Cookie headers.
CGI::Cookie::parse('k=v; expires=Mon, 19-Sep-2011 20:03:01 GMT; path=/; domain=.test.com')
{"k"=>["v"], "expires"=>["Mon"], "domain"=>[".test.com"], "path"=>["/"]}
-
Date is not parsed correctly
-
How do I get the name of this cookie? Check for any keys that are not "expires", "domain" or "path"?
-
Documentation is not correct. Says it will return hash of cookie_name => Cookie
=end
Files
Actions
Like0
Like0Like0