go-watson-sdk icon indicating copy to clipboard operation
go-watson-sdk copied to clipboard

Forward the content_type that is passed to Convert() to the Watson API

Open aaaton opened this issue 7 years ago • 1 comments

The API seems capable of detecting the content type itself, but is forced to do so every time, since w.CreateFormFile() sets the content type to application/octet-stream.

This broke the msword conversion for me, as my actual Mime-type was something like application/x-tika-msword and not application/msword.

With this change the content_type you send in to Convert() is actually passed to the Watson API.

aaaton avatar Aug 23 '17 14:08 aaaton

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Aug 23 '17 14:08 CLAassistant