Fixe a bug in the test client causing url parameters to be removed. This fixes #968

This commit is contained in:
Armin Ronacher 2014-02-08 17:19:00 +00:00
parent 52098e1e4f
commit e7c587789a
3 changed files with 18 additions and 0 deletions

View file

@ -31,6 +31,8 @@ def make_test_environ_builder(app, path='/', base_url=None, *args, **kwargs):
base_url += app_root.lstrip('/')
if url.netloc:
path = url.path
if url.query:
path += '?' + url.query
return EnvironBuilder(path, base_url, *args, **kwargs)