function pipeContent(xhr, stream, offset) {
      var content = getContent(xhr);

      if (content != null) {
        if (content.toString().match(/ArrayBuffer/)) {