summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
Diffstat (limited to 'searx')
-rw-r--r--searx/engines/yandex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/engines/yandex.py b/searx/engines/yandex.py
index 2c6984fdc..77b03067b 100644
--- a/searx/engines/yandex.py
+++ b/searx/engines/yandex.py
@@ -35,7 +35,7 @@ content_xpath = './/div[@class="b-serp-item__content"]//div[@class="b-serp-item_
def catch_bad_response(resp):
- if resp.url.path.startswith('/showcaptcha'):
+ if resp.headers.get('x-yandex-captcha') == 'captcha':
raise SearxEngineCaptchaException()