dingo / dingo/api

rate limit header missing when throw exception

Open
#1,507 0 comments 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

my route is like this
```
$api = app('Dingo\Api\Routing\Router');

$api->version('v1', [
'namespace' => 'App\Http\Controllers\Api',
'middleware' => 'api.throttle',
'limit' => 2,
'expires' => 1,
], function($api) {
$api->get('rate', function() {
abort(403,'test');
});
});
```
first request has has no X-RateLimit headers
![image](https://user-images.githubusercontent.com/2981799/34651182-ca7fc268-f407-11e7-9682-db2cc39d8886.png)

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.