resolved url in response

This commit is contained in:
Martin Algesten
2018-12-20 11:08:39 +01:00
parent 07fd4d2cd5
commit cb3d6e8124
3 changed files with 15 additions and 3 deletions

View File

@@ -182,7 +182,7 @@ pub(crate) fn connect(
// since it is not a redirect, or we're not following redirects,
// give away the incoming stream to the response object
response::set_stream(&mut resp, Some(unit), stream);
response::set_stream(&mut resp, unit.url.to_string(), Some(unit), stream);
// release the response
Ok(resp)