mediaType: d.gs(function () {
    var contentType = this.contentType, match;
    return (contentType && (match = contentType.match(/^([^;,]+)/))) ? match[1].toLowerCase() : null;
  }, function (value) {
    this.contentType = value + (this.charset ? ';charset=' + this.charset : '');