Don't set empty body on external curl requests [Fixes #4791]403/head
commitf7a4f3622fd186937622a3e42b37747e8f27dd24
authorAndrew Coulton <andrew@ingenerator.com>
Thu, 26 Sep 2013 10:43:20 +0000 (26 11:43 +0100)
committerAndrew Coulton <andrew@ingenerator.com>
Thu, 26 Sep 2013 21:24:47 +0000 (26 22:24 +0100)
treeb64da565d0996990b56b9cd9bc05597acb55b1bb
parentc22b7e797b5bbe8bf54b70792dea547fa1d6d8ef
Don't set empty body on external curl requests [Fixes #4791]

When the CURLOPT_POSTFIELDS option is present, curl adds a
default Content-Type header which can be changed but not
removed, causing authentication problems with signed requests.

The option should only be set if a request body is being sent.
classes/kohana/request/client/curl.php