зеркало из https://github.com/mozilla/pjs.git
Supplementary cleanup to bug 228510 p=gautheri@noos.fr r=me sr=bz
This commit is contained in:
Родитель
b95d0b49fc
Коммит
793fc4027a
|
@ -936,15 +936,11 @@ function makePreview(row)
|
|||
|
||||
function getContentTypeFromHeaders(cacheEntryDescriptor)
|
||||
{
|
||||
var headers, match;
|
||||
if (!cacheEntryDescriptor)
|
||||
return null;
|
||||
|
||||
if (cacheEntryDescriptor)
|
||||
{
|
||||
headers = cacheEntryDescriptor.getMetaDataElement("response-head");
|
||||
match = /^Content-Type:\s*(.*?)\s*(?:\;|$)/mi.exec(headers);
|
||||
return match[1];
|
||||
}
|
||||
return "";
|
||||
return (/^Content-Type:\s*(.*?)\s*(?:\;|$)/mi
|
||||
.exec(cacheEntryDescriptor.getMetaDataElement("response-head")))[1];
|
||||
}
|
||||
|
||||
function getContentTypeFromImgRequest(item)
|
||||
|
|
Загрузка…
Ссылка в новой задаче