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

upload sets HTTP request to PUT for "HTTP upload"

parent 6dc5c6ff
No related branches found
No related tags found
No related merge requests found
......@@ -339,6 +339,9 @@ CURLcode curl_setopt(CURL *curl, CURLoption option, ...)
break;
case CURLOPT_UPLOAD:
data->bits.upload = va_arg(param, long)?TRUE:FALSE;
if(data->bits.upload)
/* If this is HTTP, PUT is what's needed to "upload" */
data->httpreq = HTTPREQ_PUT;
break;
case CURLOPT_POST:
data->bits.http_post = va_arg(param, long)?TRUE:FALSE;
......
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