mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Avoid a bug of ruby 1.8.
This commit is contained in:
parent
726e2f89ea
commit
dcf7f7e7a5
1 changed files with 5 additions and 1 deletions
|
|
@ -132,7 +132,11 @@ class HTTP::CookieJar
|
|||
yield cookie
|
||||
}
|
||||
else
|
||||
HTTP::Cookie.parse(set_cookie, origin, options, &method(:add))
|
||||
HTTP::Cookie.parse(set_cookie, origin, options) { |cookie|
|
||||
add(cookie)
|
||||
}
|
||||
# XXX: ruby 1.8 fails to call super from a proc'ized method
|
||||
# HTTP::Cookie.parse(set_cookie, origin, options, &method(:add)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue