From df53a09366d88512ff51fe75afb35f3610f6714d Mon Sep 17 00:00:00 2001 From: Raul Rodriguez Date: Thu, 28 May 2015 06:01:31 +0200 Subject: [PATCH] Avoid 403 forbidden error on IPN request --- src/bb-library/Payment/Adapter/PayPalEmail.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bb-library/Payment/Adapter/PayPalEmail.php b/src/bb-library/Payment/Adapter/PayPalEmail.php index 2caef9442..68b3f589b 100644 --- a/src/bb-library/Payment/Adapter/PayPalEmail.php +++ b/src/bb-library/Payment/Adapter/PayPalEmail.php @@ -241,6 +241,8 @@ class Payment_Adapter_PayPalEmail implements \Box\InjectionAwareInterface $headers = Array( ($post_contents ? 'POST' : 'GET')." $path HTTP/1.1", "Host: $host", + 'Connection: Close', + 'User-Agent: BoxBilling' ); if (!empty($phd)) { if (!is_array($phd)) {