X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fdownloads.c;h=4a2352d700fe7335bd538955c2b37692710b8c8e;hb=839760156cc8c20d7df494fdcdac5ad28e26f32e;hp=a1d2984c459615e8e0ef53f453f92f9527cdc60e;hpb=a98b77122767a5ab63763b37715f2b8a5403de34;p=citadel.git diff --git a/webcit/downloads.c b/webcit/downloads.c index a1d2984c4..4a2352d70 100644 --- a/webcit/downloads.c +++ b/webcit/downloads.c @@ -61,7 +61,9 @@ void download_file(char *filename) 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);