"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.
This commit is contained in:
divinity76 2019-08-26 02:11:18 +02:00 committed by Stefan A. Brannfjell
parent 01c5da322a
commit 3c15ead4cf

View File

@ -61,8 +61,8 @@
$paypal = $config['paypal']; $paypal = $config['paypal'];
$prices = $config['paypal_prices']; $prices = $config['paypal_prices'];
// Send an empty HTTP 200 OK response to acknowledge receipt of the notification // Send an empty HTTP 204 OK response to acknowledge receipt of the notification
header('HTTP/1.1 200 OK'); http_response_code(204);
// Build the required acknowledgement message out of the notification just received // Build the required acknowledgement message out of the notification just received
$req = 'cmd=_notify-validate'; $req = 'cmd=_notify-validate';