diff options
author | Léo Bourrel <leo.bourrel@epitech.eu> | 2019-08-05 16:15:40 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2019-08-05 16:15:40 +0200 |
commit | 88261e111ca2186f080c4048ab41b4c54cd5cf87 (patch) | |
tree | 4f6fbbe3cabe46e2895d8b8a9fecab1c1198ca67 /searx/static/themes | |
parent | 12f891da8496fad1f1fa24eeb52b1b19f03f8678 (diff) | |
download | searxng-88261e111ca2186f080c4048ab41b4c54cd5cf87.tar.gz searxng-88261e111ca2186f080c4048ab41b4c54cd5cf87.zip |
Fix bing engine results count (#1387)
This PR fixes the result count from bing which was throwing an (hidden) error and add a validation to avoid reading more results than avalaible.
For example :
If there is 100 results from some search and we try to get results from 120 to 130, Bing will send back the results from 0 to 10 and no error. If we compare results count with the first parameter of the request we can avoid this "invalid" results.
Diffstat (limited to 'searx/static/themes')
0 files changed, 0 insertions, 0 deletions