about summary refs log tree commit diff stats
path: root/src/HTFWriter.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2004-05-23 23:18:52 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2004-05-23 23:18:52 -0400
commit06cddc6badf9b4a4791361cfbeffc5b1e2d2d6a6 (patch)
tree7412c28c8d53c8064dd5ca3445fbbd110df54b04 /src/HTFWriter.c
parentd326f24d169154673717129098ff4554a673f178 (diff)
downloadlynx-snapshots-06cddc6badf9b4a4791361cfbeffc5b1e2d2d6a6.tar.gz
snapshot of project "lynx", label v2-8-6dev_4
Diffstat (limited to 'src/HTFWriter.c')
-rw-r--r--src/HTFWriter.c12
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);
     }
5582' href='/akkartik/mu/commit/html/068error-byte.subx.html?h=main&id=6033844884f18c9a6e6e186c79c36fd1dd2c9bb0'>60338448 ^
ce2c1efc ^

60338448 ^

e0610e39 ^
60338448 ^
ac07e589 ^
79328f9a ^















ce2c1efc ^
79328f9a ^















c8a3ccbe ^
79328f9a ^
695f9bf8 ^







2104d1a7 ^
33352536 ^

695f9bf8 ^

33352536 ^
695f9bf8 ^



33352536 ^
695f9bf8 ^

33352536 ^

695f9bf8 ^


2104d1a7 ^
b1635a5c ^
33352536 ^

695f9bf8 ^


33352536 ^
695f9bf8 ^


33352536 ^
695f9bf8 ^

33352536 ^

695f9bf8 ^


33352536 ^
695f9bf8 ^


33352536 ^
695f9bf8 ^


33352536 ^
695f9bf8 ^

33352536 ^

695f9bf8 ^
8aeb85f0 ^
695f9bf8 ^
33352536 ^
695f9bf8 ^


33352536 ^
695f9bf8 ^


33352536 ^
8aeb85f0 ^
695f9bf8 ^
33352536 ^
695f9bf8 ^
999c529c ^
695f9bf8 ^
33352536 ^
695f9bf8 ^


33352536 ^
695f9bf8 ^
60338448 ^
695f9bf8 ^

b1635a5c ^
33352536 ^

695f9bf8 ^


79328f9a ^



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155