lib/protocol/http/cookie.rb in protocol-http-0.23.5 vs lib/protocol/http/cookie.rb in protocol-http-0.23.6
- old
+ new
@@ -66,10 +66,10 @@
end
def self.parse(string)
head, *directives = string.split(/\s*;\s*/)
- key, value = head.split('=')
+ key, value = head.split('=', 2)
directives = self.parse_directives(directives)
self.new(
URL.unescape(key),
URL.unescape(value),