Skip to content
Snippets Groups Projects
Commit 02370fff authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

curl: unbreak --http1.0 again

I broke it in 2eabb7d5
parent e9de8e78
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment