1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-05 17:15:04 -05:00

curl: unbreak --http1.0 again

I broke it in 2eabb7d590
This commit is contained in:
Daniel Stenberg 2013-09-05 09:56:05 +02:00
parent e9de8e78f0
commit 02370fff3a

View File

@ -176,7 +176,7 @@ static const struct LongShort aliases[]= {
{"$J", "metalink", FALSE},
{"$K", "sasl-ir", FALSE},
{"$L", "test-event", FALSE},
{"00", "http1.0", FALSE},
{"0", "http1.0", FALSE},
{"01", "http1.1", FALSE},
{"02", "http2.0", FALSE},
{"1", "tlsv1", FALSE},
@ -989,7 +989,7 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
break;
case '0': /* --http* options */
switch(subletter) {
case '0':
case '\0':
/* HTTP version 1.0 */
config->httpversion = CURL_HTTP_VERSION_1_0;
break;