Home GnuPG

Do not fail a call to paypal or stripe with no return data.

Description

Do not fail a call to paypal or stripe with no return data.

* src/paypal.c (call_paypal): Replace an empty string by a JSON
object.
* src/stripe.c (call_stripe): Ditto.

Some Paypal call s do not return data. This results in an empty
string in our functions which is a non-valid JSON object. The effect
is that an error is returned and not an "empty" JSON object. To
mitigate this we return the "null" JSON object in such a case.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on May 19 2017, 10:22 AM
Parents
rPAY64454b9b5bc6: Add the PATCH method to the http module.
Branches
Unknown
Tags
Unknown