Scrapy, a fast high-level web crawling & scraping framework for Python.
HTTP Cache: treat 308 as 301
Paul Tremberth1fdc10684fc4
diff --git a/tests/test_downloadermiddleware_httpcache.py b/tests/test_downloadermiddleware_httpcache.pyindex 12b69860a..22946b98c 100644--- a/tests/test_downloadermiddleware_httpcache.py+++ b/tests/test_downloadermiddleware_httpcache.py@@ -322,6 +322,7 @@ class RFC2616PolicyTest(DefaultStorageTest):(True, 203, {'Last-Modified': self.yesterday}),(True, 300, {'Last-Modified': self.yesterday}),(True, 301, {'Last-Modified': self.yesterday}),+ (True, 308, {'Last-Modified': self.yesterday}),(True, 401, {'Last-Modified': self.yesterday}),(True, 404, {'Cache-Control': 'public, max-age=600'}),(True, 302, {'Expires': self.tomorrow}),