Version 5.1 - All the GraphQL #32
@ -311,7 +311,7 @@ final class HummingbirdClient implements Client {
|
|||||||
$request = $request->withoutHeader('Transfer-Encoding');
|
$request = $request->withoutHeader('Transfer-Encoding');
|
||||||
} else {
|
} else {
|
||||||
if ($bodyLength > 0) {
|
if ($bodyLength > 0) {
|
||||||
$request = $request->withHeader("Content-Length", $bodyLength);
|
$request = $request->withHeader("Content-Length", (string)$bodyLength);
|
||||||
$request = $request->withoutHeader("Transfer-Encoding");
|
$request = $request->withoutHeader("Transfer-Encoding");
|
||||||
} else {
|
} else {
|
||||||
$request = $request->withHeader("Transfer-Encoding", "chunked");
|
$request = $request->withHeader("Transfer-Encoding", "chunked");
|
||||||
|
Loading…
Reference in New Issue
Block a user