forked from LiveCarta/PayPal-PHP-SDK
Merge pull request #1060 from gaurangrajvir/patch-1
Added condition to ignore extra header
This commit is contained in:
@@ -83,6 +83,11 @@ class PayPalHttpConnection
|
||||
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);
|
||||
|
||||
$key = trim($key);
|
||||
|
||||
Reference in New Issue
Block a user