I'm using the watson-developer-cloud Node.js library to send HTML documents to Watson's Document Conversion service. The service tries to guess the mime/type for the documents that I'm sending but sometimes gets it wrong, so I want to specify the mime/type explicitly when making the call. I know the document conversion service's REST API has a way to specify the document type, but how do I specify the document type when using this call in the watson-developer-cloud library? The code below doesn't do it.
//"content" is the actual HTML
document_conversion.convert({file: {value: new Buffer(content), options: {}},
conversion_target: "ANSWER_UNITS",
type: "text/html"
}, function (err, response) {...