What is the reply that you get from the server? Does it work if you move the " || contentType.startsWith(CONTENT_TEXT_HTML)" condition to the "else if" branch?
What is the reply that you get from the server? startsWith( CONTENT_ TEXT_HTML) " condition to the "else if" branch?
Does it work if you move the " || contentType.