* evade double calls to output_headers
[citadel.git] / webcit / messages.c
index f10f3bbdf3540f77b7207ab686dbce29ac663cf9..6c8a97eb7ca390a5309a4c6ffd6ea4ee0f97bd48 100644 (file)
@@ -1515,7 +1515,6 @@ void postpart(StrBuf *partnum, StrBuf *filename, int force_download)
                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 {
@@ -1569,7 +1568,6 @@ void mimepart(int force_download)
                                CT = GuessMimeType(SKEY(WCC->WBuf));
                        }
                }
-               output_headers(0, 0, 0, 0, 0, 0);
                http_transmit_thing(CT, 0);
        } else {
                StrBufCutLeft(Buf, 4);