summaryrefslogtreecommitdiff
path: root/packages/integrations/node/src/http-server.ts
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2023-05-12 14:03:42 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2023-05-12 14:03:42 +0000
commitb064ca6539522ecf0ba476ef9de75a8d113bec0c (patch)
tree52215e9ed79dd36e244b1da50a22b3bbd986cd11 /packages/integrations/node/src/http-server.ts
parent781f558c401a5f02927d150e4628a77c55cccd28 (diff)
downloadastro-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.ts8
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;