Commit 33b06f56 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

reverted 1.109, we can't set the request type when -d is used, as -G can be

used and it makes it a GET...
parent 61a84abe
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1249,9 +1249,13 @@ static ParameterError getparameter(char *flag, /* f or -long-flag */
        else
          config->postfields=postdata;
      }
      /*
        We can't set the request type here, as this data might be used in
        a simple GET if -G is used. Already or soon.

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