From 9307c219ad4741db860b864c860ac2f8bf9fad9d Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 19 Sep 2018 10:17:03 +0200 Subject: urlapi: add CURLU_GUESS_SCHEME and fix hostname acceptance In order for this API to fully work for libcurl itself, it now offers a CURLU_GUESS_SCHEME flag that makes it "guess" scheme based on the host name prefix just like libcurl always did. If there's no known prefix, it will guess "http://". Separately, it relaxes the check of the host name so that IDN host names can be passed in as well. Both these changes are necessary for libcurl itself to use this API. Assisted-by: Daniel Gustafsson Closes #3018 --- tests/data/test1560 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/data/test1560') diff --git a/tests/data/test1560 b/tests/data/test1560 index 720df036f..4b6c97a53 100644 --- a/tests/data/test1560 +++ b/tests/data/test1560 @@ -16,6 +16,12 @@ none file https http +pop3 +smtp +imap +ldap +dict +ftp URL API -- cgit v1.2.1