Closed hellodev-justin closed 2 years ago
The issue seems to be that Storyblok\Client::_assignState($response) does not retain $response->httpResponseCode.
Suggested fix to src/Storyblok/Client.php:
src/Storyblok/Client.php
private function _assignState($response) { $this->responseBody = $response->httpResponseBody; $this->responseHeaders = $response->httpResponseHeaders; $this->responseCode = $response->httpResponseCode; // retain responseCode }
Issue solved with #46. Thanks!
The issue seems to be that Storyblok\Client::_assignState($response) does not retain $response->httpResponseCode.
Suggested fix to
src/Storyblok/Client.php
: