diff options
author | 2024-02-12 09:28:13 +0100 | |
---|---|---|
committer | 2024-02-12 09:28:13 +0100 | |
commit | 00063b0669c7d548f5ee212171eb9350f70f17f1 (patch) | |
tree | 94039997d5c7b6526bb52f51d9816b00e05eb259 /packages/integrations/netlify/test | |
parent | 1693ff2cc0b3a43554da4d63dc1ff907e65a4992 (diff) | |
download | astro-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.js | 1 |
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'); }); |