forked from zaclys/searxng
9db0bbc304
Close #197 perhaps not in clean way. Explanation :
In fact 301 responses are followed, except the hook is called for each HTTP response,
the first time for the HTTP 301 response then for HTTP 200 response.
Since the kickass engine excepts a real result, the engine crashes, AND the requests lib stops here.
Add a simple test at the beginning of the result function allows pass the first response and handle correctly the second response (the real one)
May be a proper way is to add this test in search.py ?
Code inside requests :
|
||
---|---|---|
.. | ||
__init__.py | ||
test_bing.py | ||
test_bing_images.py | ||
test_bing_news.py | ||
test_blekko_images.py | ||
test_btdigg.py | ||
test_dailymotion.py | ||
test_deezer.py | ||
test_deviantart.py | ||
test_digg.py | ||
test_dummy.py | ||
test_flickr.py | ||
test_flickr_noapi.py | ||
test_gigablast.py | ||
test_github.py | ||
test_google_images.py | ||
test_google_news.py | ||
test_kickass.py | ||
test_mixcloud.py | ||
test_piratebay.py | ||
test_searchcode_code.py | ||
test_searchcode_doc.py | ||
test_soundcloud.py | ||
test_stackoverflow.py | ||
test_vimeo.py | ||
test_www1x.py | ||
test_www500px.py | ||
test_youtube.py |