Explicitly enforce content type of API response on GQL response
This commit is contained in:
parent
bc098d73fa
commit
96e86f6e4e
1 changed files with 1 additions and 0 deletions
|
@ -700,6 +700,7 @@ class Builder
|
||||||
|
|
||||||
$result = $apiResponse->getPayload();
|
$result = $apiResponse->getPayload();
|
||||||
|
|
||||||
|
$gqlResponse->setContentType($apiResponse->getContentType());
|
||||||
$gqlResponse->setStatusCode($apiResponse->getStatusCode());
|
$gqlResponse->setStatusCode($apiResponse->getStatusCode());
|
||||||
|
|
||||||
if ($apiResponse->getStatusCode() < 200 || $apiResponse->getStatusCode() >= 400) {
|
if ($apiResponse->getStatusCode() < 200 || $apiResponse->getStatusCode() >= 400) {
|
||||||
|
|
Loading…
Reference in a new issue