Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manage request headers in data retriever #37

Open
peveuve opened this issue Mar 15, 2017 · 0 comments
Open

Manage request headers in data retriever #37

peveuve opened this issue Mar 15, 2017 · 0 comments

Comments

@peveuve
Copy link

peveuve commented Mar 15, 2017

I would like to be able to check some HTTP headers in the request, like the Accept-language, to determine the access right on certain routes.
Is it OK for you if I submit a PR to manage that in the request data retriever ?

// Check allowed keys
if (['method', 'path', 'headers'].indexOf(key) === -1) {
return callback();
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant