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

allow override content-type #517

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

gdaszuta
Copy link

In some cases there is need to manualy set content-type in controller before sending rendered response.

@bigethan
Copy link
Contributor

Can you do this with the res.set(router.getHeadersForRoute(route)); code that's already there for custom headers? Or by adding some functionality into getHeadersForRoute as that's already there to load any custom headers that you need (see: https://github.com/rendrjs/rendr/blob/master/server/router.js#L111 )

Or is there a different use case that I'm missing?

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.

None yet

3 participants