Commit 6a62fc4a authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

make sure -d is treated as a POST request and thus should fail if mixed

with -I for example
parent 7cdd6455
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1176,8 +1176,8 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
          config->postfields=postdata;
      }

/*      if(SetHTTPrequest(HTTPREQ_SIMPLEPOST, &config->httpreq))
        return PARAM_BAD_USE;*/
      if(SetHTTPrequest(HTTPREQ_SIMPLEPOST, &config->httpreq))
        return PARAM_BAD_USE;
      break;
    case 'D':
      /* dump-header to given file name */