Skip to content

Commit 794e187

Browse files
authored
docs: Update nuxt3 usage
docs: update nuxt3 usage
2 parents b1a8731 + fcc1fcb commit 794e187

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ import { useCompression } from 'h3-compression'
7373

7474
export default defineNitroPlugin((nitro) => {
7575
nitro.hooks.hook('render:response', async (response, { event }) => {
76-
if (!response.headers?.['content-type'].startsWith('text/html'))
76+
if (!response.headers?.['content-type']?.startsWith('text/html'))
7777
return
7878

7979
await useCompression(event, response)

0 commit comments

Comments
 (0)