From 3c15ead4cf5525edd258c76b0f95a0d227759e22 Mon Sep 17 00:00:00 2001 From: divinity76 Date: Mon, 26 Aug 2019 02:11:18 +0200 Subject: [PATCH] "no content OK" is HTTP 204, not HTTP 200. (#365) read section 6.3.5 of https://tools.ietf.org/html/rfc7231#section-6.3.5 for proof. --- ipn.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipn.php b/ipn.php index 69a989e..52d7149 100644 --- a/ipn.php +++ b/ipn.php @@ -61,8 +61,8 @@ $paypal = $config['paypal']; $prices = $config['paypal_prices']; - // Send an empty HTTP 200 OK response to acknowledge receipt of the notification - header('HTTP/1.1 200 OK'); + // Send an empty HTTP 204 OK response to acknowledge receipt of the notification + http_response_code(204); // Build the required acknowledgement message out of the notification just received $req = 'cmd=_notify-validate';