support GET forms
This commit is contained in:
parent
47d8d5f7bc
commit
ab710e0f74
1 changed files with 4 additions and 1 deletions
|
|
@ -488,7 +488,10 @@ class Form(OrderedDict):
|
|||
"""
|
||||
Get the Request object from the form.
|
||||
"""
|
||||
req = requests.Request(self.method, self.url, data=self)
|
||||
if self.method.lower() == 'get':
|
||||
req = requests.Request(self.method, self.url, params=self)
|
||||
else:
|
||||
req = requests.Request(self.method, self.url, data=self)
|
||||
req.headers.setdefault('Referer', self.page.url)
|
||||
return req
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue