mirror of
https://github.com/searxng/searxng.git
synced 2024-12-11 20:06:28 +00:00
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 :
|
||
---|---|---|
.. | ||
engines | ||
https_rules | ||
static | ||
templates | ||
tests | ||
translations | ||
__init__.py | ||
autocomplete.py | ||
https_rewrite.py | ||
languages.py | ||
poolrequests.py | ||
query.py | ||
search.py | ||
settings.yml | ||
settings_robot.yml | ||
testing.py | ||
utils.py | ||
version.py | ||
webapp.py |