lib/www/mechanize/chain/response_header_handler.rb in mechanize-0.9.2 vs lib/www/mechanize/chain/response_header_handler.rb in mechanize-0.9.3

- old
+ new

@@ -25,10 +25,9 @@ cache_obj[:keep_alive_options] ||= {} cache_obj[:keep_alive_options][k.intern] = v end end - if page.is_a?(Page) && page.body =~ /Set-Cookie/n page.search('//meta[@http-equiv="Set-Cookie"]').each do |meta| Cookie::parse(uri, meta['content']) { |c| Mechanize.log.debug("saved cookie: #{c}") if Mechanize.log @cookie_jar.add(uri, c)