aboutsummaryrefslogtreecommitdiff
path: root/lib/urlapi-int.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-09-21 08:17:39 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-09-21 11:19:14 +0200
commit2097cd515289581df5dfb6eeb5942d083a871fa4 (patch)
tree9e84d0c8a018fbeebc499d87c41daa185c2f113d /lib/urlapi-int.h
parent9bdadbbdee61c1726c2f5ee9452fd4cd6a933128 (diff)
urlapi: fix support for address scope in IPv6 numerical addresses
Closes #3024
Diffstat (limited to 'lib/urlapi-int.h')
-rw-r--r--lib/urlapi-int.h4
1 files changed, 4 insertions, 0 deletions
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);