Merge pull request #1060 from gaurangrajvir/patch-1

Added condition to ignore extra header
This commit is contained in:
Bryant Luk
2018-04-06 11:57:39 -05:00
committed by GitHub

View File

@@ -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);