urlapi: fix support for address scope in IPv6 numerical addresses

Closes #3024
This commit is contained in:
Daniel Stenberg 2018-09-21 08:17:39 +02:00
parent 9bdadbbdee
commit 2097cd5152
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
3 changed files with 9 additions and 6 deletions

View file

@ -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);