From ad42622d3b1194bda979a8f804f54dde39589310 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Sun, 14 Oct 2012 22:19:59 +0900 Subject: [PATCH] Fix a bad example that blindly eats a cookie without checking the origin. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1293364..80b88c6 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Or install it yourself as: # Store received cookies HTTP::Cookie.parse(uri, set_cookie_header_value) { |cookie| - jar << cookie + jar << cookie if cookie.acceptable_from_uri?(uri) } # Extract cookies to send