Commit b01dc66d authored by Florian Duguet's avatar Florian Duguet Committed by Romain Bignon

url: fix usage of json parameter in go()

parent b3c11ff3
Pipeline #1327 failed with stages
in 25 seconds
......@@ -86,7 +86,7 @@ class URL(object):
return self.go(headers=headers, **kwargs)
def go(self, params=None, data=None, method=None, headers=None, **kwargs):
def go(self, params=None, data=None, json=None, method=None, headers=None, **kwargs):
"""
Request to go on this url.
......@@ -95,7 +95,7 @@ class URL(object):
>>> url = URL('http://exawple.org/(?P<pagename>).html')
>>> url.stay_or_go(pagename='index')
"""
r = self.browser.location(self.build(**kwargs), params=params, data=data, method=method, headers=headers or {})
r = self.browser.location(self.build(**kwargs), params=params, data=data, json=json, method=method, headers=headers or {})
return r.page or r
def open(self, params=None, data=None, method=None, headers=None, **kwargs):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment