diff options
author | Jens Finkhaeuser <jens@finkhaeuser.de> | 2019-09-19 15:54:53 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-09-19 15:57:28 +0200 |
commit | 0a4ecbdf1c35de3a0a367db73edbf50fabc0fb0e (patch) | |
tree | 6683941b25029f617b35d5ca9787391680bdb3c9 /include | |
parent | 346188f6e455ab99f1d040e3ba474b80e9694bda (diff) | |
download | curl-0a4ecbdf1c35de3a0a367db73edbf50fabc0fb0e.tar.gz |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/curl/urlapi.h | 2 |
1 files changed, 2 insertions, 0 deletions
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; |