Now using BNodeInfo class to set MIME type, following korli suggestion.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14511 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2005-10-25 11:09:40 +00:00
parent 9ae6a9220a
commit c0440b532f
@@ -236,9 +236,9 @@ PDFWriter::EndJob()
PDF_close(fPdf);
REPORT(kDebug, 0, ">>>> PDF_close");
PDF_delete(fPdf);
PDF_shutdown();
PDF_delete(fPdf);
PDF_shutdown();
fclose(fLog);
return B_OK;
}
@@ -268,9 +268,11 @@ PDFWriter::InitWriter()
fState = NULL;
fStateDepth = 0;
// Set MIME-type explicit
SetAttribute("BEOS:TYPE", "application/pdf");
// Set MIME type explicit as we *do* know it's a PDF document
BFile * file = dynamic_cast<BFile *>(Transport());
if (file)
BNodeInfo(file).SetType("application/pdf");
// pdflib scope: object
/*
const char* license_key;