summaryrefslogtreecommitdiff
path: root/packages/integrations/node/src
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthewp@users.noreply.github.com> 2023-11-28 13:48:11 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2023-11-28 13:48:11 +0000
commit6e0292a1fa79914ef70759372886b23ca413ece8 (patch)
tree7a70fb92910aeedc75788ad6b59883a25fdc2511 /packages/integrations/node/src
parent8f1d509574f5ee5d77816a13d89ce452dce403ff (diff)
downloadastro-6e0292a1fa79914ef70759372886b23ca413ece8.tar.gz
astro-6e0292a1fa79914ef70759372886b23ca413ece8.tar.zst
astro-6e0292a1fa79914ef70759372886b23ca413ece8.zip
[ci] format
Diffstat (limited to '')
-rw-r--r--packages/integrations/node/src/http-server.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/node/src/http-server.ts b/packages/integrations/node/src/http-server.ts
index 73773538e..904937601 100644
--- a/packages/integrations/node/src/http-server.ts
+++ b/packages/integrations/node/src/http-server.ts
@@ -63,9 +63,9 @@ export function createServer(
handler(req, res);
});
stream.on('headers', (_res: http.ServerResponse<http.IncomingMessage>) => {
- if(isImmutableAsset(encodedURI)) {
+ if (isImmutableAsset(encodedURI)) {
// Taken from https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control#immutable
- _res.setHeader('Cache-Control', 'public, max-age=31536000, immutable')
+ _res.setHeader('Cache-Control', 'public, max-age=31536000, immutable');
}
});
stream.on('directory', () => {