зеркало из https://github.com/mozilla/gecko-dev.git
Bug 884146 - B2G MMS: Can not receive MMS from Far-stone sim card. r=vyang
This commit is contained in:
Родитель
50e6c66301
Коммит
5c259090f7
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче