From: KH Lau Date: Fri, 9 Mar 2018 03:13:28 +0000 (+0800) Subject: BrowserWindow.vala X-Git-Url: http://git.roojs.org/?p=app.webkitpdf;a=commitdiff_plain;h=7880fdcf48f4833fb1c970cffc07d7e0a669fdf8 BrowserWindow.vala --- diff --git a/BrowserWindow.vala b/BrowserWindow.vala index 60c47b0..77f7dc1 100644 --- a/BrowserWindow.vala +++ b/BrowserWindow.vala @@ -77,8 +77,7 @@ public class BrowserWindow : Object OutputStream ostream = iostream.output_stream; DataOutputStream dostream = new DataOutputStream (ostream); - dostream.put_string ("%s\tTRUE\t/\t%s\t2147483647\t%s\t%s".printf(uri.get_host(),scheme == "http" ? "FALSE" : "TRUE",cookies[0],cookies[1])); - //dostream.put_string (uri.get_host() + "\tTRUE\t/\t"+ssl+"\t2147483647\t" + cookies[0] + "\t" + cookies[1] ); + dostream.put_string ("%s\tTRUE\t/\t%s\t2147483647\t%s\t%s".printf(uri.get_host(),scheme == "http" ? "FALSE" : "TRUE",cookies[0],cookies[1])); cookie_manager.set_persistent_storage(file.get_path(), WebKit.CookiePersistentStorage.TEXT); } catch (Error e) { stdout.printf ("Error: %s\n", e.message);