diff options
| author | ianb <devnull@localhost> | 2006-11-02 17:28:09 +0000 |
|---|---|---|
| committer | ianb <devnull@localhost> | 2006-11-02 17:28:09 +0000 |
| commit | d023f2e352f6cc8f086e646cf693fedd770c70d5 (patch) | |
| tree | 4fb41e602221c18b8d4bcc6c15bd574c42a31347 | |
| parent | c4ecb8f2d85e398951d20d9a05a98a3b57b20a9f (diff) | |
| download | paste-d023f2e352f6cc8f086e646cf693fedd770c70d5.tar.gz | |
fix #127: paste.fixture doesn't correctly handle empty action
| -rw-r--r-- | docs/news.txt | 5 | ||||
| -rw-r--r-- | paste/fixture.py | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/news.txt b/docs/news.txt index 075aaa6..2b87a5e 100644 --- a/docs/news.txt +++ b/docs/news.txt @@ -10,6 +10,11 @@ svn trunk ``WWW-Authenticate`` header is not required. 401 responses don't *have* to have that header. +* In ``paste.fixture.TestApp``: ``<form>`` tags that have to + ``action`` will preserve the existing query string. (Generally + relative links that are completely empty should but were not + preserving the query string) + 1.0 --- diff --git a/paste/fixture.py b/paste/fixture.py index 5a49f41..7e2d4a7 100644 --- a/paste/fixture.py +++ b/paste/fixture.py @@ -687,7 +687,7 @@ class TestResponse(object): # We scheme = host = fragment = '' href = urlparse.urlunsplit((scheme, host, path, query, fragment)) - href = urlparse.urljoin(self.request.url, href) + href = urlparse.urljoin(self.request.full_url, href) method = method.lower() assert method in ('get', 'post'), ( 'Only "get" or "post" are allowed for method (you gave %r)' |
