Skip to content

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.

3 participants