Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[HttpClient] Gzipped data isn't inflated #34238

Closed
@loevgaard

Description

@loevgaard

Symfony version(s) affected: 4.3

Description
When I request json data from Microsofts Business Central, i.e. https://api.businesscentral.dynamics.com I get gzipped data back, but the Symfony HTTP client doesn't inflate it.

I can do something like this:

$response = $this->client->request('GET', $url);
$data = gzinflate($response->getContent());

and that works. My question is whether it is intended that I should do this myself or not? The headers in the response has this in them:

[content-encoding] => Array (
    [0] => gzip
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions