forked from LiveCarta/PayPal-PHP-SDK
Added condition to ignore extra header
I have added condition to ignore extra header which dont have colon ( : ) I am currently facing issue in my project and I am taking paypal sdk from composer.. is it the right source to update or any other ?
This commit is contained in:
@@ -83,6 +83,11 @@ class PayPalHttpConnection
|
|||||||
return strlen($data);
|
return strlen($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Added condition to ignore extra header which dont have colon ( : )
|
||||||
|
if (strpos($trimmedData, ":") == false) {
|
||||||
|
return strlen($data);
|
||||||
|
}
|
||||||
|
|
||||||
list($key, $value) = explode(":", $trimmedData, 2);
|
list($key, $value) = explode(":", $trimmedData, 2);
|
||||||
|
|
||||||
$key = trim($key);
|
$key = trim($key);
|
||||||
|
|||||||
Reference in New Issue
Block a user