Permalink
Browse files

Merge pull request #293 from mmorearty/patch-cookiejar-header

Add header line when writing to cookies.txt
  • Loading branch information...
leejarvis committed Feb 18, 2013
2 parents b7cdf96 + 7df242a commit 2c6c67593f7bbfe2273e6ad4b0cd8726900f4b2a
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/mechanize/cookie_jar.rb
@@ -187,6 +187,7 @@ def load_cookiestxt(io)
# Write cookies to Mozilla cookies.txt-style IO stream
def dump_cookiestxt(io)
+ io.puts "# HTTP Cookie File"
to_a.each do |cookie|
io.puts([
cookie.domain,

0 comments on commit 2c6c675

Please sign in to comment.