Open gdaszuta opened 7 years ago
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?
In some cases there is need to manualy set content-type in controller before sending rendered response.