diff options
author | 2023-05-12 14:03:42 +0000 | |
---|---|---|
committer | 2023-05-12 14:03:42 +0000 | |
commit | b064ca6539522ecf0ba476ef9de75a8d113bec0c (patch) | |
tree | 52215e9ed79dd36e244b1da50a22b3bbd986cd11 /packages/integrations/node/src/http-server.ts | |
parent | 781f558c401a5f02927d150e4628a77c55cccd28 (diff) | |
download | astro-b064ca6539522ecf0ba476ef9de75a8d113bec0c.tar.gz astro-b064ca6539522ecf0ba476ef9de75a8d113bec0c.tar.zst astro-b064ca6539522ecf0ba476ef9de75a8d113bec0c.zip |
[ci] format
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; |