diff options
-rw-r--r-- | lib/url.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |