dingo / dingo/api

No content length when throwing Dingo exception.

Open
#1,193 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
9.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

For example when doing this there is no content-length header in the response:

```
throw new Dingo\Api\Exception\StoreResourceFailedException('Could not create new user.', $validator->errors());
```

Because there is no content length I just get an empty response instead of the validation errors.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.