diff --git a/tavern_flask/client.py b/tavern_flask/client.py index 4f4495a..de962f9 100644 --- a/tavern_flask/client.py +++ b/tavern_flask/client.py @@ -2,9 +2,10 @@ import json as jsonlib try: - from urllib.parse import urlparse + from urllib.parse import urlparse, urlencode except ImportError: from urlparse import urlparse + from urllib import urlencode from future.utils import raise_from @@ -57,7 +58,7 @@ def make_request(self, url, verify, method, headers=None, params=None, json=None body = None if data: - raise NotImplementedError + body = urlencode(data) if json: body = jsonlib.dumps(json)