if (!force_download) {
StrBufExtract_token(ContentType, Buf, 3, '|');
}
- output_headers(0, 0, 0, 0, 0, 0);
read_server_binary(WCC->WBuf, bytes, Buf);
serv_puts("CLOS");
StrBuf_ServGetlnBuffered(Buf);
else {
content_type = NewStrBufDup(part->ContentType);
}
- output_headers(0, 0, 0, 0, 0, 0);
StrBufAppendBuf(WC->WBuf, part->Data, 0);
http_transmit_thing(ChrPtr(content_type), 0);
} else {
CT = GuessMimeType(SKEY(WCC->WBuf));
}
}
- output_headers(0, 0, 0, 0, 0, 0);
http_transmit_thing(CT, 0);
} else {
StrBufCutLeft(Buf, 4);
const StrBuf *MimeType;
const StrBuf *Tmpl = sbstr("template");
begin_burst();
- output_headers(0, 0, 0, 0, 1, 0);
MimeType = DoTemplate(SKEY(Tmpl), NULL, &NoCtx);
http_transmit_thing(ChrPtr(MimeType), 0);
}