Improved support for absolute url passed tp HTTP_REQUEST_SESSION .

This commit is contained in:
Jocelyn Fiat
2017-10-27 19:24:52 +02:00
parent 503e5f7915
commit f770c236d5
7 changed files with 75 additions and 4 deletions

View File

@@ -36,13 +36,13 @@ feature {NONE} -- Initialization
i := a_url.substring_index ("://", 1)
if i > 0 then
check
a_url.substring (1, i).same_string ("http")
or a_url.substring (1, i).same_string ("https")
a_url.head (i - 1).same_string ("http")
or a_url.head (i - 1).same_string ("https")
end
url := a_url
else
url := session.url (a_url, Void)
end
end
headers := session.headers.twin
if ctx /= Void then
context := ctx