gocardless-legacy-php
gocardless-legacy-php copied to clipboard
Always add CURLOPT_POSTFIELDS for a POST request
PHP (5.5.8 on my machine) seemed to be adding header
Content-Length: -1
If a POST request has no CURLOPT_POSTFIELDS defined, causing a 400 Bad Request from GoCardless.
This caused retry/refund requests to always fail.