diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2004-05-23 23:18:52 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2004-05-23 23:18:52 -0400 |
commit | 06cddc6badf9b4a4791361cfbeffc5b1e2d2d6a6 (patch) | |
tree | 7412c28c8d53c8064dd5ca3445fbbd110df54b04 /src/HTFWriter.c | |
parent | d326f24d169154673717129098ff4554a673f178 (diff) | |
download | lynx-snapshots-06cddc6badf9b4a4791361cfbeffc5b1e2d2d6a6.tar.gz |
snapshot of project "lynx", label v2-8-6dev_4
Diffstat (limited to 'src/HTFWriter.c')
-rw-r--r-- | src/HTFWriter.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/HTFWriter.c b/src/HTFWriter.c index ffc16ed2..2054cab7 100644 --- a/src/HTFWriter.c +++ b/src/HTFWriter.c @@ -17,10 +17,6 @@ #include <HTParse.h> #endif -#ifdef _WIN_CC -extern int exec_command(char *cmd, int wait_flag); /* xsystem.c */ -#endif - #include <HTFormat.h> #include <UCDefs.h> #include <HTAlert.h> @@ -729,12 +725,14 @@ HTStream *HTSaveAndExecute(HTPresentation *pres, suffix = HTML_SUFFIX; } else if (!strncasecomp(pres->rep->name, "text/", 5)) { suffix = TEXT_SUFFIX; - } else if (!strncasecomp(pres->rep->name, "application/", 12)) { - suffix = BIN_SUFFIX; } else if ((suffix = HTFileSuffix(pres->rep, anchor->content_encoding)) == 0 || *suffix != '.') { - suffix = HTML_SUFFIX; + if (!strncasecomp(pres->rep->name, "application/", 12)) { + suffix = BIN_SUFFIX; + } else { + suffix = HTML_SUFFIX; + } } me->fp = LYOpenTemp(fnam, suffix, BIN_W); } |