From 2d25eab0df4c5c8bb1894cbc45cc15059d726c8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=9D=CE=B9=CE=BA=CF=8C=CE=BB=CE=B1=CE=BF=CF=82-=CE=94?= =?UTF-8?q?=CE=B9=CE=B3=CE=B5=CE=BD=CE=AE=CF=82=20=CE=9A=CE=B1=CF=81=CE=B1?= =?UTF-8?q?=CE=B3=CE=B9=CE=AC=CE=BD=CE=BD=CE=B7=CF=82?= Date: Fri, 13 Nov 2015 18:05:07 +0200 Subject: [PATCH] FormRequest: 's default type must be text --- scrapy/http/request/form.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scrapy/http/request/form.py b/scrapy/http/request/form.py index ea4bfd564..8ff394602 100644 --- a/scrapy/http/request/form.py +++ b/scrapy/http/request/form.py @@ -107,7 +107,7 @@ def _get_inputs(form, formdata, dont_click, clickdata, response): inputs = form.xpath('descendant::textarea' '|descendant::select' - '|descendant::input[@type[' + '|descendant::input[not(@type) or @type[' ' translate(., "SUBMIT", "submit") != "submit"' ' and translate(., "IMAGE", "image") !="image"' ' and translate(., "RESET", "reset") != "reset"'