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
This commit is contained in:
Jens Finkhaeuser 2019-09-19 15:54:53 +02:00 committed by Daniel Stenberg
parent 346188f6e4
commit 0a4ecbdf1c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
5 changed files with 57 additions and 11 deletions

View file

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