If url is relative, use session.url (...) to get valid url.

It could happen with relative url in `Location: ...` header (for redirection).
This commit is contained in:
Jocelyn Fiat
2017-09-21 10:45:08 +02:00
parent 6425482070
commit 20a90db2e3
2 changed files with 6 additions and 1 deletions

View File

@@ -113,6 +113,7 @@ feature -- Access
-- Get URL data
l_is_https := url.starts_with_general ("https://")
create l_uri.make_from_string (url)
check valid_url: l_uri.is_valid end
l_port := l_uri.port
if l_port = 0 then
if l_is_https then