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:
Gaurang Rajvir
2018-02-13 17:55:41 +05:30
committed by GitHub
parent 5ee9de3ef8
commit 1208b8c21f

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