From ef1f759e9db65aa38d2d361675ea445c55a99b13 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Mon, 8 Apr 2013 13:53:20 +0900 Subject: [PATCH] Fix an example. --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 6e3ff1b..4054299 100644 --- a/README.md +++ b/README.md @@ -35,9 +35,7 @@ Or install it yourself as: jar.load(filename) if File.exist?(filename) # Store received cookies - HTTP::Cookie.parse(set_cookie_header_value, origin: uri) { |cookie| - jar << cookie - } + jar.parse(set_cookie_header_value, uri) # Get the value for the Cookie field of a request header cookie_header_value = jar.cookies(uri).join(', ')