зеркало из https://github.com/mozilla/gecko-dev.git
Bug 836538 - Catch exceptions when we have no etag headers on packages r=ferjm
This commit is contained in:
Родитель
636ff59f08
Коммит
f44ba49ba0
|
@ -2236,13 +2236,17 @@ this.DOMApplicationRegistry = {
|
|||
if (!app.staged) {
|
||||
app.staged = { };
|
||||
}
|
||||
app.staged.packageEtag =
|
||||
requestChannel.getResponseHeader("Etag");
|
||||
try {
|
||||
app.staged.packageEtag =
|
||||
requestChannel.getResponseHeader("Etag");
|
||||
} catch(e) { }
|
||||
app.staged.packageHash = aHash;
|
||||
app.staged.appStatus =
|
||||
AppsUtils.getAppManifestStatus(manifest);
|
||||
} else {
|
||||
app.packageEtag = requestChannel.getResponseHeader("Etag");
|
||||
try {
|
||||
app.packageEtag = requestChannel.getResponseHeader("Etag");
|
||||
} catch(e) { }
|
||||
app.packageHash = aHash;
|
||||
app.appStatus = AppsUtils.getAppManifestStatus(manifest);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче