Bug 884146 - B2G MMS: Can not receive MMS from Far-stone sim card. r=vyang

This commit is contained in:
Chia-hung Tai 2013-06-18 18:17:43 +08:00
Родитель 50e6c66301
Коммит 5c259090f7
1 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -402,7 +402,7 @@ MmsProxyFilter.prototype = {
// Fall-through, reutrn the MMS proxy info.
if (DEBUG) debug("applyFilter: MMSC is matched: " +
JSON.stringify({ url: this.url,
roxyInfo: gMmsConnection.proxyInfo }));
proxyInfo: gMmsConnection.proxyInfo }));
return gMmsConnection.proxyInfo ? gMmsConnection.proxyInfo : proxyInfo;
}
};
@ -460,8 +460,6 @@ XPCOMUtils.defineLazyGetter(this, "gMmsTransactionHelper", function () {
xhr.setRequestHeader("Content-Type",
"application/vnd.wap.mms-message");
xhr.setRequestHeader("Content-Length", istream.available());
} else {
xhr.setRequestHeader("Content-Length", 0);
}
// UAProf headers.
@ -504,7 +502,8 @@ XPCOMUtils.defineLazyGetter(this, "gMmsTransactionHelper", function () {
break;
}
default: {
if (DEBUG) debug("xhr done, but status = " + xhr.status);
if (DEBUG) debug("xhr done, but status = " + xhr.status +
", statusText = " + xhr.statusText);
break;
}
}