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

[FIX] CSP Middleware: Use native res.getHeader/setHeader methods #312

Merged
merged 2 commits into from
Apr 27, 2020

Conversation

matz3
Copy link
Member

@matz3 matz3 commented Apr 20, 2020

Using getHeader/setHeader instead of the express methods get/set to
allow using the middleware with a different server framework or as a
native Node.js server handler.

This also aligns the code with the other middleware which already use
getHeader/setHeader.

Using getHeader/setHeader instead of the express methods get/set to
allow using the middleware with a different server framework or as a
native Node.js server handler.

This also aligns the code with the other middleware which already use
getHeader/setHeader.
svbender
svbender previously approved these changes Apr 20, 2020
@coveralls
Copy link

Coverage Status

Coverage remained the same at 93.279% when pulling 5100eed on csp-middleware-compatibility into 135d922 on master.

Copy link
Member

@RandomByte RandomByte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like this

@matz3 matz3 merged commit c53525c into master Apr 27, 2020
@matz3 matz3 deleted the csp-middleware-compatibility branch April 27, 2020 07:46
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.

4 participants