diff options
Diffstat (limited to 'packages/integrations/node/src/http-server.ts')
-rw-r--r-- | packages/integrations/node/src/http-server.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/integrations/node/src/http-server.ts b/packages/integrations/node/src/http-server.ts index 2c58c0da7..177c71ed9 100644 --- a/packages/integrations/node/src/http-server.ts +++ b/packages/integrations/node/src/http-server.ts @@ -57,10 +57,10 @@ export function createServer( }); stream.on('directory', () => { // On directory find, redirect to the trailing slash - const location = req.url + '/'; - res.statusCode = 301 - res.setHeader('Location', location); - res.end(location); + const location = req.url + '/'; + res.statusCode = 301; + res.setHeader('Location', location); + res.end(location); }); stream.on('file', () => { forwardError = true; |