mirror of https://github.com/scrapy/scrapy.git
removed deprecated code
This commit is contained in:
parent
d8775a7575
commit
d197895d8f
|
|
@ -81,8 +81,7 @@ class FilesystemCacheStorage(object):
|
|||
body = f.read()
|
||||
with open(join(rpath, 'response_headers'), 'rb') as f:
|
||||
rawheaders = f.read()
|
||||
# We failback to metadata['url'] to support old generated caches. TODO: remove for Scrapy 0.11
|
||||
url = metadata.get('response_url') or metadata['url']
|
||||
url = metadata.get('response_url')
|
||||
status = metadata['status']
|
||||
headers = Headers(headers_raw_to_dict(rawheaders))
|
||||
respcls = responsetypes.from_args(headers=headers, url=url)
|
||||
|
|
|
|||
Loading…
Reference in New Issue