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:
@@ -268,8 +268,10 @@ PDFWriter::InitWriter()
|
|||||||
fState = NULL;
|
fState = NULL;
|
||||||
fStateDepth = 0;
|
fStateDepth = 0;
|
||||||
|
|
||||||
// Set MIME-type explicit
|
// Set MIME type explicit as we *do* know it's a PDF document
|
||||||
SetAttribute("BEOS:TYPE", "application/pdf");
|
BFile * file = dynamic_cast<BFile *>(Transport());
|
||||||
|
if (file)
|
||||||
|
BNodeInfo(file).SetType("application/pdf");
|
||||||
|
|
||||||
// pdflib scope: object
|
// pdflib scope: object
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user