Fixed issue when the Protocol has Content-Type : application/json.

When the Protocol has Content-Type : application/json the browser parse the result before passing it to read() function.