]> granicus.if.org Git - curl/commitdiff
curl: unbreak --http1.0 again
authorDaniel Stenberg <daniel@haxx.se>
Thu, 5 Sep 2013 07:56:05 +0000 (09:56 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 5 Sep 2013 07:56:05 +0000 (09:56 +0200)
I broke it in 2eabb7d590

src/tool_getparam.c

index 482f467eb2f920d665b23d89319b38351f7bb433..a6a14c0d5aec15fe8cefd54776735e5f3a8d66a6 100644 (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;