mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Merge pull request #1 from mmorearty/patch-cookiejar-header
Add header line when writing to cookies.txt
This commit is contained in:
commit
92fe768c7f
1 changed files with 1 additions and 0 deletions
|
|
@ -163,6 +163,7 @@ class HTTP::CookieJar
|
|||
# Write cookies to Mozilla cookies.txt-style IO stream and return
|
||||
# self.
|
||||
def dump_cookiestxt(io)
|
||||
io.puts "# HTTP Cookie File"
|
||||
to_a.each do |cookie|
|
||||
io.print cookie.to_cookiestxt_line
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue