Fix stupid type error
This commit is contained in:
parent
282ba45960
commit
0cb09dc4b8
@ -311,7 +311,7 @@ final class HummingbirdClient implements Client {
|
||||
$request = $request->withoutHeader('Transfer-Encoding');
|
||||
} else {
|
||||
if ($bodyLength > 0) {
|
||||
$request = $request->withHeader("Content-Length", $bodyLength);
|
||||
$request = $request->withHeader("Content-Length", (string)$bodyLength);
|
||||
$request = $request->withoutHeader("Transfer-Encoding");
|
||||
} else {
|
||||
$request = $request->withHeader("Transfer-Encoding", "chunked");
|
||||
|
Loading…
Reference in New Issue
Block a user