summaryrefslogtreecommitdiff
path: root/lib/webrick/cookie.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/webrick/cookie.rb')
-rw-r--r--lib/webrick/cookie.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/webrick/cookie.rb b/lib/webrick/cookie.rb
index b9663dc7918..814e6645a37 100644
--- a/lib/webrick/cookie.rb
+++ b/lib/webrick/cookie.rb
@@ -100,5 +100,11 @@ module WEBrick
}
return cookie
end
+
+ def self.parse_set_cookies(str)
+ return str.split(/,(?=[^;,]*=)|,$/).collect{|c|
+ parse_set_cookie(c)
+ }
+ end
end
end