mirror of
https://github.com/curl/curl.git
synced 2026-07-12 06:57:15 +03:00
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:
parent
346188f6e4
commit
0a4ecbdf1c
5 changed files with 57 additions and 11 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue