mirror of
https://github.com/curl/curl.git
synced 2026-08-25 09:23:31 +03:00
TFTP: add option to suppress TFTP option requests (Part 2)
- Add tests. - Add an example to CURLOPT_TFTP_NO_OPTIONS.3. - Add --tftp-no-options to expose CURLOPT_TFTP_NO_OPTIONS. Bug: https://github.com/curl/curl/issues/481
This commit is contained in:
parent
9dc3eaee29
commit
186546f1c5
12 changed files with 155 additions and 20 deletions
|
|
@ -180,6 +180,7 @@ static const struct LongShort aliases[]= {
|
|||
{"$P", "service-name", TRUE},
|
||||
{"$Q", "proto-default", TRUE},
|
||||
{"$R", "expect100-timeout", TRUE},
|
||||
{"$S", "tftp-no-options", FALSE},
|
||||
{"0", "http1.0", FALSE},
|
||||
{"01", "http1.1", FALSE},
|
||||
{"02", "http2", FALSE},
|
||||
|
|
@ -1005,6 +1006,9 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
if(err)
|
||||
return err;
|
||||
break;
|
||||
case 'S': /* --tftp-no-options */
|
||||
config->tftp_no_options = toggle;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case '#': /* --progress-bar */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue