Skip to content

Commit 2420ea5

Browse files
committedJan 22, 2025·
fix: avoid Host header getting merged
Fixes #400
1 parent d78a13c commit 2420ea5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/runtime/server/sitemap/urlset/sources.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export async function fetchDataSource(input: SitemapSourceBase | SitemapSourceRe
3333
signal: timeoutController.signal,
3434
headers: defu(options?.headers, {
3535
Accept: isXmlRequest ? 'text/xml' : 'application/json',
36-
}, event ? { Host: getRequestHost(event, { xForwardedHost: true }) } : {}),
36+
}, event ? { host: getRequestHost(event, { xForwardedHost: true }) } : {}),
3737
// @ts-expect-error untyped
3838
onResponse({ response }) {
3939
if (typeof response._data === 'string' && response._data.startsWith('<!DOCTYPE html>'))

0 commit comments

Comments
 (0)
Please sign in to comment.