diff options
| author | Adam Tauber <asciimoo@gmail.com> | 2015-02-13 12:21:38 +0100 |
|---|---|---|
| committer | Adam Tauber <asciimoo@gmail.com> | 2015-02-13 12:21:38 +0100 |
| commit | 3ff269c84c936a3ffc2e8e3168a4ac017047015b (patch) | |
| tree | 4edae7e62bdd600a22bc370fd72529e998e7fa9b /searx/search.py | |
| parent | a8e870fbb6eafe027cd7bea68f9c4c8c22d89558 (diff) | |
| parent | 5029cb478755c152bfa7da2f6381cd95cc4ee238 (diff) | |
Merge pull request #237 from dalf/master
[fix] close #197 for all engines
Diffstat (limited to 'searx/search.py')
| -rw-r--r-- | searx/search.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/searx/search.py b/searx/search.py index 79a8ae0a9..476b92197 100644 --- a/searx/search.py +++ b/searx/search.py @@ -87,6 +87,11 @@ def make_callback(engine_name, results_queue, callback, params): # creating a callback wrapper for the search engine results def process_callback(response, **kwargs): + # check if redirect comparing to the True value, + # because resp can be a Mock object, and any attribut name returns something. + if response.is_redirect is True: + return + response.search_params = params timeout_overhead = 0.2 # seconds |