microsoft-translator-java-api icon indicating copy to clipboard operation
microsoft-translator-java-api copied to clipboard

shoud allow the setting of the content-type... it is now hardcoded into the class to plain/text , which is not good

Open boatmeme opened this issue 12 years ago • 1 comments

You should allow the setting of the content-type... it is now hardcoded into the class to plain/text , which is not good. One should be able to set it as it wishes.

This is a problem description:

http://social.microsoft.com/Forums/en-US/translator/thread/fa4063eb-3cf9-4b0b-872c-849623256d71

Meanwhile I am downloading the sources and will do it myself (set a global static variable just as the appid key, to be set when needed)

Regards.

[email protected]

boatmeme avatar Apr 23 '12 02:04 boatmeme

It looks like a static setter method com.memetix.mst.MicrosoftTranslatorAPI.setContentType(String) was added in commit 790a943854b50e3c1e191d167f68a80126419cf7, but it appears to control the Content-Type header, not the Translate/TranslateArray contentType parameter(s).

seanf avatar Oct 07 '16 05:10 seanf