mirror of https://github.com/scrapy/scrapy.git
Allow formdata value to be None to drop field generated from response
This commit is contained in:
parent
7fc11c1348
commit
26f723e4e6
|
|
@ -135,7 +135,7 @@ def _get_inputs(form, formdata, dont_click, clickdata, response):
|
|||
if clickable and clickable[0] not in formdata and not clickable[0] is None:
|
||||
values.append(clickable)
|
||||
|
||||
values.extend(formdata.items())
|
||||
values.extend((k, v) for k, v in formdata.items() if v is not None)
|
||||
return values
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue