diff options
author | Rudá Porto Filgueiras <rudazz@gmail.com> | 2020-01-09 13:53:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 13:53:27 +0100 |
commit | 20d07226c2d7caadcb3fab3c209e82b8c6272833 (patch) | |
tree | e1ac47c95918fa18ddb2550ac6ea0626e191354f | |
parent | f01ed4b08f456fa4b9767254af12da70bde73d41 (diff) | |
download | webtest-20d07226c2d7caadcb3fab3c209e82b8c6272833.tar.gz |
Added new host property to _RequestCookieAdapter
This is an edge case when running tests in a docker container.
-rw-r--r-- | webtest/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webtest/utils.py b/webtest/utils.py index 9ae1377..d138573 100644 --- a/webtest/utils.py +++ b/webtest/utils.py @@ -115,6 +115,10 @@ class _RequestCookieAdapter(object): def get_full_url(self): return self._request.url + @property + def host(self): + return self.origin_req_host + def get_host(self): return self.origin_req_host get_origin_req_host = get_host |