diff options
Diffstat (limited to 'src/HTFWriter.c')
-rw-r--r-- | src/HTFWriter.c | 12 |
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); } |