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

Remove Express alias of res.setHeader #199

Merged
merged 1 commit into from
Dec 3, 2019
Merged

Remove Express alias of res.setHeader #199

merged 1 commit into from
Dec 3, 2019

Conversation

isaachinman
Copy link

Following #191 (comment), it appears we can support non-Express use with connect and https by simply removing these two Express res.set calls. The res.set alias is identical to the vanilla res.setHeader.

This PR should be completely transparent to existing users, but will allow new users to opt out of Express.

It should be noted that due to lack of test coverage in this repo, there may indeed be other Express syntax problems that we have not discovered yet. Future bug reports by non-Express users may reveal these sorts of problems.

Also - we might at some point want to change the naming here to just i18next-middleware?

@jamuhl jamuhl merged commit 9b52d98 into i18next:master Dec 3, 2019
@jamuhl
Copy link
Member

jamuhl commented Dec 3, 2019

thank you - published in i18next-express-middleware@1.9.0

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

Successfully merging this pull request may close these issues.

2 participants