зеркало из https://github.com/mozilla/pjs.git
bug 173867 - http expires header with date-in-past causes miscalculation. r-dougt, sr-darin.
This commit is contained in:
Родитель
dc91aee512
Коммит
4b13e320bb
|
@ -517,7 +517,10 @@ nsHttpResponseHead::GetExpiresValue(PRUint32 *result)
|
|||
return NS_ERROR_NOT_AVAILABLE;
|
||||
}
|
||||
|
||||
*result = PRTimeToSeconds(time);
|
||||
if (LL_CMP(time, <, LL_Zero()))
|
||||
*result = 0;
|
||||
else
|
||||
*result = PRTimeToSeconds(time);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче