From 0a4ecbdf1c35de3a0a367db73edbf50fabc0fb0e Mon Sep 17 00:00:00 2001 From: Jens Finkhaeuser Date: Thu, 19 Sep 2019 15:54:53 +0200 Subject: urlapi: CURLU_NO_AUTHORITY allows empty authority/host part CURLU_NO_AUTHORITY is intended for use with unknown schemes (i.e. not "file:///") to override cURL's default demand that an authority exists. Closes #4349 --- include/curl/urlapi.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/curl/urlapi.h b/include/curl/urlapi.h index 0f2f152f1..f2d06770d 100644 --- a/include/curl/urlapi.h +++ b/include/curl/urlapi.h @@ -77,6 +77,8 @@ typedef enum { #define CURLU_URLENCODE (1<<7) /* URL encode on set */ #define CURLU_APPENDQUERY (1<<8) /* append a form style part */ #define CURLU_GUESS_SCHEME (1<<9) /* legacy curl-style guessing */ +#define CURLU_NO_AUTHORITY (1<<10) /* Allow empty authority when the + scheme is unknown. */ typedef struct Curl_URL CURLU; -- cgit v1.2.3