From 251a1d1f4d63bc39ce5271c8a39cb685a5c289f2 Mon Sep 17 00:00:00 2001 From: Mission Liao Date: Sun, 25 Dec 2016 22:31:40 +0800 Subject: [PATCH] the correct property should be 'url' --- pyswagger/contrib/client/flask.py | 2 +- pyswagger/contrib/client/webapp2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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