We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebc0c37 commit 0022a1cCopy full SHA for 0022a1c
packages/react/node.js
@@ -106,16 +106,16 @@ var renderWithContext = function(reactElement, _context) {
106
timings.end('hops.react.renderTemplate');
107
108
var routerContext = templateData.routerContext;
109
+ routerContext.headers && res.set(routerContext.headers);
110
+
111
if (routerContext.miss) {
112
next();
113
} else if (routerContext.url) {
114
res.status(routerContext.status || 301);
115
res.set('Location', routerContext.url);
- routerContext.headers && res.set(routerContext.headers);
116
res.end();
117
} else {
118
res.status(routerContext.status || 200);
119
res.type('html');
120
res.send(markup);
121
}
0 commit comments