Skip to content

Commit 1d92be5

Browse files
authored
fix(api): do not forward accept encoding header (#3701)
1 parent f5a4679 commit 1d92be5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/runtime/internal/api.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ async function fetchContent<T>(
88
options: NonNullable<Parameters<typeof $fetch>[1]>,
99
): Promise<T> {
1010
const headers = event ? getRequestHeaders(event) : {}
11+
headers['accept-encoding'] = undefined // prevent unsupported enconding issue (https://github.com/nuxt/content/pull/3701)
12+
1113
const url = `/__nuxt_content/${collection}/${path}`
1214
const fetchOptions = {
1315
...options,

0 commit comments

Comments
 (0)