summaryrefslogtreecommitdiff
path: root/packages/integrations/netlify/test
diff options
context:
space:
mode:
authorGravatar Simon Knott <info@simonknott.de> 2024-02-12 09:28:13 +0100
committerGravatar GitHub <noreply@github.com> 2024-02-12 09:28:13 +0100
commit00063b0669c7d548f5ee212171eb9350f70f17f1 (patch)
tree94039997d5c7b6526bb52f51d9816b00e05eb259 /packages/integrations/netlify/test
parent1693ff2cc0b3a43554da4d63dc1ff907e65a4992 (diff)
downloadastro-00063b0669c7d548f5ee212171eb9350f70f17f1.tar.gz
astro-00063b0669c7d548f5ee212171eb9350f70f17f1.tar.zst
astro-00063b0669c7d548f5ee212171eb9350f70f17f1.zip
fix(netlify): 404 has wrong content-type header (#162)
Diffstat (limited to 'packages/integrations/netlify/test')
-rw-r--r--packages/integrations/netlify/test/functions/redirects.test.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/integrations/netlify/test/functions/redirects.test.js b/packages/integrations/netlify/test/functions/redirects.test.js
index e0819e08f..89bbed1ba 100644
--- a/packages/integrations/netlify/test/functions/redirects.test.js
+++ b/packages/integrations/netlify/test/functions/redirects.test.js
@@ -35,6 +35,7 @@ describe('SSR - Redirects', () => {
const { default: handler } = await import(entryURL);
const resp = await handler(new Request('http://example.com/nonexistant-page'), {});
expect(resp.status).to.equal(404);
+ expect(resp.headers.get("content-type")).to.equal("text/html; charset=utf-8")
const text = await resp.text();
expect(text).to.contain('This is my static 404 page');
});