Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmoradi committed Feb 2, 2025
1 parent 17af4be commit 0912b22
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ private static void UseSiteMap(this WebApplication app)

var baseUrl = context.Request.GetBaseUrl();

context.Response.Headers.ContentType = "application/xml";

await context.Response.WriteAsync(string.Format(SITEMAP_INDEX_FORMAT, baseUrl), context.RequestAborted);
}).CacheOutput("AppResponseCachePolicy").WithTags("Sitemaps");

Expand Down

0 comments on commit 0912b22

Please sign in to comment.