From 2097cd515289581df5dfb6eeb5942d083a871fa4 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 21 Sep 2018 08:17:39 +0200 Subject: urlapi: fix support for address scope in IPv6 numerical addresses Closes #3024 --- lib/urlapi-int.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/urlapi-int.h') diff --git a/lib/urlapi-int.h b/lib/urlapi-int.h index 7ac09fdb5..a5bb8ea0b 100644 --- a/lib/urlapi-int.h +++ b/lib/urlapi-int.h @@ -22,6 +22,10 @@ * ***************************************************************************/ #include "curl_setup.h" +/* scheme is not URL encoded, the longest libcurl supported ones are 6 + letters */ +#define MAX_SCHEME_LEN 8 + bool Curl_is_absolute_url(const char *url, char *scheme, size_t buflen); char *Curl_concat_url(const char *base, const char *relurl); size_t Curl_strlen_url(const char *url, bool relative); -- cgit v1.2.3