Skip to content

Commit c6eb4e2

Browse files
committed
Content-Length Header
1 parent 0f08bf8 commit c6eb4e2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/HttpRequestGraphQL.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ protected static function prepareRequest($httpHeaders = array(), $data = array()
5252
} else {
5353
self::$postDataGraphQL = json_encode(['query' => $data]);
5454
}
55+
56+
self::$httpHeaders['Content-Length'] = strlen(self::$postDataGraphQL);
5557
}
5658

5759
/**

0 commit comments

Comments
 (0)