Do not set CURLOPT_NOBODY if we have data to send.
In libcurl version 7.15.5 will CURLOPT_NOBODY (when true) change the HTTP method from PUT to HEAD, even though CURLOPT_UPLOAD is true.
Setting the CURLOPT_NOBODY to true if no data, to get the similar behaviour as earlier.
Merge pull request #109 from espebra/master

Do not set CURLOPT_NOBODY if we have data to send.