diff --git a/docs/02-app/01-building-your-application/01-routing/10-route-handlers.mdx b/docs/02-app/01-building-your-application/01-routing/10-route-handlers.mdx index 1fb2567c891ca..b0d3a98fd05a4 100644 --- a/docs/02-app/01-building-your-application/01-routing/10-route-handlers.mdx +++ b/docs/02-app/01-building-your-application/01-routing/10-route-handlers.mdx @@ -622,7 +622,8 @@ You can use Route Handlers to return non-UI content. Note that [`sitemap.xml`](/ export const dynamic = 'force-dynamic' // defaults to auto export async function GET() { - return new Response(` + return new Response( + ` @@ -631,7 +632,13 @@ export async function GET() { The React Framework for the Web -`) +`, + { + headers: { + 'Content-Type': 'text/xml', + }, + } + ) } ```