Skip to content

Commit

Permalink
docs: Update nuxt3 usage
Browse files Browse the repository at this point in the history
docs: update nuxt3 usage
  • Loading branch information
CodeDredd committed May 5, 2024
2 parents b1a8731 + fcc1fcb commit 794e187
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ import { useCompression } from 'h3-compression'

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

await useCompression(event, response)
Expand Down

0 comments on commit 794e187

Please sign in to comment.