Handle improperly set content-type for API

This happens because IE's XDomainRequest sets the content type to
text/plain instead of form url encoded.