diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-02-06 21:38:08 -0500 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-02-06 21:38:08 -0500 |
commit | 9c63ba04a5785f8ad069bf660402530617451a06 (patch) | |
tree | 8597ad92f9e4398c149583c22798d67e31e3dbad /src/HTFWriter.c | |
parent | c3ec4181d988501e4d7116f32c669d5ca69e7060 (diff) | |
download | lynx-snapshots-9c63ba04a5785f8ad069bf660402530617451a06.tar.gz |
snapshot of project "lynx", label v2_6fm_970206
Diffstat (limited to 'src/HTFWriter.c')
-rw-r--r-- | src/HTFWriter.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/HTFWriter.c b/src/HTFWriter.c index 820d0fa0..fac0af78 100644 --- a/src/HTFWriter.c +++ b/src/HTFWriter.c @@ -544,6 +544,8 @@ PUBLIC HTStream* HTSaveToFile ARGS3( if (dump_output_immediately) { ret_obj->fp = stdout; /* stdout*/ + if (HTOutputFormat == HTAtom_for("www/download")) + goto Prepend_BASE; return ret_obj; } @@ -708,6 +710,7 @@ PUBLIC HTStream* HTSaveToFile ARGS3( _statusline(RETRIEVING_FILE); StrAllocCopy(anchor->FileCache, fnam); +Prepend_BASE: if (!strncasecomp(pres->rep->name, "text/html", 9)) { /* * Add the document's base as a BASE tag at the top of the file, |