From 1cd21f97e0fd8f80e4da97235163e2e26f8e059c Mon Sep 17 00:00:00 2001 From: nyov Date: Tue, 20 May 2014 05:19:12 +0000 Subject: [PATCH] update a link reference --- scrapy/contrib/httpcache.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scrapy/contrib/httpcache.py b/scrapy/contrib/httpcache.py index fefebc41c..2099bab9c 100644 --- a/scrapy/contrib/httpcache.py +++ b/scrapy/contrib/httpcache.py @@ -108,8 +108,8 @@ class RFC2616Policy(object): request.headers['If-None-Match'] = cachedresponse.headers['ETag'] def _compute_freshness_lifetime(self, response, request, now): - # Reference nsHttpResponseHead::ComputeFresshnessLifetime - # http://dxr.mozilla.org/mozilla-central/netwerk/protocol/http/nsHttpResponseHead.cpp.html#l259 + # Reference nsHttpResponseHead::ComputeFreshnessLifetime + # http://dxr.mozilla.org/mozilla-central/source/netwerk/protocol/http/nsHttpResponseHead.cpp#410 cc = self._parse_cachecontrol(response) if 'max-age' in cc: try: @@ -142,7 +142,7 @@ class RFC2616Policy(object): def _compute_current_age(self, response, request, now): # Reference nsHttpResponseHead::ComputeCurrentAge - # http://dxr.mozilla.org/mozilla-central/netwerk/protocol/http/nsHttpResponseHead.cpp.html + # http://dxr.mozilla.org/mozilla-central/source/netwerk/protocol/http/nsHttpResponseHead.cpp#366 currentage = 0 # If Date header is not set we assume it is a fast connection, and # clock is in sync with the server