* USE OR PERFORMANCE OF THIS SOFTWARE.
*
* $Log: wproto.c,v $
- * Revision 1.12 1996/01/05 16:35:02 adam
+ * Revision 1.13 1996/01/12 10:05:20 adam
+ * If script name ends with ';' HTTP/GET/Expires will be defined.
+ * The cgi interface only reads final handshake if response from
+ * server (shell) was zero-terminated [If it isn't it probably died].
+ *
+ * Revision 1.12 1996/01/05 16:35:02 adam
* Minor changes.
*
* Revision 1.11 1996/01/05 16:21:21 adam
va_end(ap);
}
-void wo_clear (WCLIENT wc, char *type)
+void wo_clear (WCLIENT wc, const char *type)
{
if (!wc->outbuffer)
wc->outbuffer = malloc(wc->outbuffer_size = OUTBUFFER_CHUNK);
wc->outbuffer_offset = 0;
-#if 0
- wo_printf(wc, "Expires: 0\nContent-type: %s\n\n", type);
-#else
- wo_printf(wc, "Content-type: %s\n\n", type);
-#endif
+ if (type)
+ wo_printf(wc, "Content-type: %s\n\n", type);
}
int wo_puthtml (WCLIENT wc, char *name)