Permalink
Browse files

Add extra meta information about mech in cookie dump

ref #293
  • Loading branch information...
1 parent 9e0a5e5 commit 7c49ee0f180d917aeb6f21a70690db5005bf39f6 @leejarvis leejarvis committed Feb 18, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/mechanize/cookie_jar.rb
@@ -188,6 +188,8 @@ def load_cookiestxt(io)
# Write cookies to Mozilla cookies.txt-style IO stream
def dump_cookiestxt(io)
io.puts "# HTTP Cookie File"
+ io.puts "# This file was generated by Ruby Mechanize " \
+ "#{Mechanize::VERSION} https://github.com/sparklemotion/mechanize.\n\n"
to_a.each do |cookie|
io.puts([
cookie.domain,

0 comments on commit 7c49ee0

Please sign in to comment.