in order to prevent downloading browsers from trying to render contents
inline.
off_t bytes;
char content_type[256];
char *content = NULL;
off_t bytes;
char content_type[256];
char *content = NULL;
- int force_download = 0;
+
+ /* Setting to nonzero forces a MIME type of application/octet-stream */
+ int force_download = 1;
serv_printf("OPEN %s", filename);
serv_getln(buf, sizeof buf);
serv_printf("OPEN %s", filename);
serv_getln(buf, sizeof buf);