Skip to content

Add application/vnd.api+json support so files are saved as .json file  #114

@ssglopes

Description

@ssglopes

Hi, Would it be possible to add contentType: application/vnd.api+json so this package would be compatible with https://laraveljsonapi.io/ as that package expects application/vnd.api+json

    protected function guessFileExtension($response)
    {
        $contentType = $response->headers->get('Content-Type');

        if ($response instanceof JsonResponse ||
            $contentType == 'application/json' ||
            $contentType == 'application/vnd.api+json' // <= would it be possible to add this line 
        ) {
            return 'json';
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions