Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
Showing only changes of commit 0cb09dc4b8 - Show all commits

View File

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