diff --git a/pyswagger/contrib/client/flask.py b/pyswagger/contrib/client/flask.py index e258c1d..af8d3e0 100644 --- a/pyswagger/contrib/client/flask.py +++ b/pyswagger/contrib/client/flask.py @@ -54,7 +54,7 @@ def request(self, req_and_resp, opt={}): data = req.data if req._p['body'] else req._p['formData'] r = self.__client.open( - path=req.path, + path=req.url, query_string=req.query, method=req.method.upper(), headers=req.header.items(), diff --git a/pyswagger/contrib/client/webapp2.py b/pyswagger/contrib/client/webapp2.py index 0857885..26b00af 100644 --- a/pyswagger/contrib/client/webapp2.py +++ b/pyswagger/contrib/client/webapp2.py @@ -41,7 +41,7 @@ def request(self, req_and_resp, opt={}): # initiate an request every time _req = webapp2.Request.blank( - req.path, + req.url, headers=req.header.items(), POST=req.data, **self.__kw