You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Shopify just announced that starting August 1st, every POST request to its API must include either the Content-Length header or use Transfer-Encoding: chunked.
In lib/HttpRequestJson.php, within the prepareRequest() method, the header is already present — so REST API requests are compliant.
However, for GraphQL requests, it seems the equivalent header (self::$httpHeaders['Content-Length'] = strlen(self::$postDataJSON);) is missing in lib/HttpRequestGraphQL.php, in the prepareRequest() method.