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
Updated by mmb (Matthew Boedicker) over 14 years ago
- File cgi_cookie_parse.patch cgi_cookie_parse.patch added
=begin
Attached patch of how I think it should behave.
=end
Updated by nobu (Nobuyoshi Nakada) over 14 years ago
- Status changed from Open to Rejected
=begin
Parsing Set-Cookie: is not the business of CGI::Cookie.parse.
cgi.rb is for server side only.
=end
Actions
Like0
Like0Like0