about summary refs log tree commit diff stats
path: root/src/HTFWriter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/HTFWriter.c')
-rw-r--r--src/HTFWriter.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/HTFWriter.c b/src/HTFWriter.c
index 6e7c78ae..aadd1dbd 100644
--- a/src/HTFWriter.c
+++ b/src/HTFWriter.c
@@ -37,6 +37,10 @@ extern int exec_command(char * cmd, int wait_flag); /* xsystem.c */
 #include <LYLeaks.h>
 #include <LYKeymap.h>
 
+#ifdef EXP_PERSISTENT_COOKIES 
+#include <LYCookie.h>
+#endif
+
 PUBLIC char * WWW_Download_File=NULL; /* contains the name of the temp file
 				      ** which is being downloaded into
 				      */
@@ -421,6 +425,14 @@ PRIVATE void HTFWriter_free ARGS1(HTStream *, me)
 	if (me->anchor->FileCache)
 	    remove(me->anchor->FileCache);
 	FREE(me);
+#ifdef EXP_PERSISTENT_COOKIES 
+	/* 
+	 *  We want to save cookies picked up when in source 
+	 *  mode.  ... 
+	 */ 
+	if (persistent_cookies) 
+	    LYStoreCookies(LYCookieSaveFile); 
+#endif /* EXP_PERSISTENT_COOKIES */ 
 	exit_immediately(0);
     }