Skip to content

Commit 6435a53

Browse files
authored
Merge pull request #87 from masroore/master
FIX #86 strtolower() null parameter deprecation
2 parents ec22ad2 + 16c8e5b commit 6435a53

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Curl/Curl.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -710,8 +710,10 @@ public function isServerError()
710710
public function getResponseHeaders($headerKey = null)
711711
{
712712
$headers = array();
713-
$headerKey = strtolower($headerKey);
714-
713+
if (!is_null($headerKey)) {
714+
$headerKey = strtolower($headerKey);
715+
}
716+
715717
foreach ($this->response_headers as $header) {
716718
$parts = explode(":", $header, 2);
717719

0 commit comments

Comments
 (0)