Skip to content

Commit

Permalink
stop: PHP Fatal error: Uncaught TypeError: strtolower(): Argument #1
Browse files Browse the repository at this point in the history
…($string) must be of type string, array given in ... /Zend/Http/Client/Adapter/Socket.php:362
  • Loading branch information
DavidGoodwin committed Dec 31, 2023
1 parent f8018da commit a510220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Zend/Http/Client/Adapter/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public function read()
}

// If we got a 'transfer-encoding: chunked' header
if (isset($headers['transfer-encoding'])) {
if (isset($headers['transfer-encoding']) && is_string($headers['trasnsfer-encoding'])) {

if (strtolower($headers['transfer-encoding']) == 'chunked') {

Expand Down

0 comments on commit a510220

Please sign in to comment.