From: KH Lau Date: Thu, 8 Mar 2018 04:36:22 +0000 (+0800) Subject: BrowserWindow.vala X-Git-Url: http://git.roojs.org/?p=app.webkitpdf;a=commitdiff_plain;h=ff525629820063b28214f45911ed8d108dc3d3d8 BrowserWindow.vala --- diff --git a/BrowserWindow.vala b/BrowserWindow.vala index c1b2108..6a41afc 100644 --- a/BrowserWindow.vala +++ b/BrowserWindow.vala @@ -70,7 +70,7 @@ public class BrowserWindow : Object File file = File.new_for_path(GLib.Environment.get_user_cache_dir() + '/cookie.txt' ); FileOutputStream ostream = file.replace (null, false, FileCreateFlags.NONE); DataOutputStream dostream = new DataOutputStream (ostream); - dostream.put_string ("my-line\n"); + dostream.put_string (uri.get_host() + "\tTRUE\t/\t2147483647\t" + cookies[0] + "\t" + cookies[1] ); } catch (Error e) { stdout.printf ("Error: %s\n", e.message); }