From 3d209b5fb0c792655288758d48a2703b88a84145 Mon Sep 17 00:00:00 2001 From: Mohammad AlSaleh Date: Sat, 9 Jan 2016 00:50:38 +0200 Subject: lib: Prefix URLs with lower-case protocol names/schemes Before this patch, if a URL does not start with the protocol name/scheme, effective URLs would be prefixed with upper-case protocol names/schemes. This behavior might not be expected by library users or end users. For example, if `CURLOPT_DEFAULT_PROTOCOL` is set to "https". And the URL is "hostname/path". The effective URL would be "HTTPS://hostname/path" instead of "https://hostname/path". After this patch, effective URLs would be prefixed with a lower-case protocol name/scheme. Closes #597 Signed-off-by: Mohammad AlSaleh --- tests/data/test1213 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/data/test1213 b/tests/data/test1213 index 729a7034d..4f22f0d92 100644 --- a/tests/data/test1213 +++ b/tests/data/test1213 @@ -43,7 +43,7 @@ HTTP with proxy and host-only URL ^User-Agent:.* -GET HTTP://we.want.that.site.com.1213/ HTTP/1.1 +GET http://we.want.that.site.com.1213/ HTTP/1.1 Host: we.want.that.site.com.1213 Accept: */* Proxy-Connection: Keep-Alive -- cgit v1.2.3