b=871549, use Content-Length in XHR ArrayBuffer requests, and fix ResetResponse(); r=bz