diff --git a/aiohttp/client.py b/aiohttp/client.py index c4f94246764..2f9d8b2dca8 100644 --- a/aiohttp/client.py +++ b/aiohttp/client.py @@ -108,6 +108,8 @@ def request(method, url, *, conn = yield from connector.connect(req) resp = req.send(conn.writer, conn.reader) + resp.final_url = url + try: yield from resp.start(conn, read_until_eof) except: @@ -550,6 +552,7 @@ def __init__(self, method, url, host='', *, writer=None, continue100=None): self.method = method self.url = url + self.final_url = None self.host = host self.headers = None self._content = None