Fixed problem when XHR would send in header "application/octet-stream; charset=utf-8"

Fixed problem when XHR would send in header "application/octet-stream; charset=utf-8", then Request.data would be "ok" instead of proper data.

Change in header was caused by our proxy server, but still detection of it is wrong here.