From 3d7b39ff86d27a9d359d77e4ffba4a7a4f776a2e Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Wed, 17 Oct 2012 22:40:20 +0900 Subject: [PATCH] Update the example code. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 80b88c6..9413955 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,8 @@ Or install it yourself as: jar.load(filename) if File.exist?(filename) # Store received cookies - HTTP::Cookie.parse(uri, set_cookie_header_value) { |cookie| - jar << cookie if cookie.acceptable_from_uri?(uri) + HTTP::Cookie.parse(set_cookie_header_value, :origin => uri) { |cookie| + jar << cookie } # Extract cookies to send