Skip to content

Commit

Permalink
Fix sitemap disposed stream (#17078)
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Alhayek <[email protected]>
  • Loading branch information
github-actions[bot] and MikeAlhayek authored Nov 26, 2024
1 parent 227dd83 commit bb7359e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public async Task<IActionResult> Index(string sitemapId, CancellationToken cance
document.Declaration = new XDeclaration("1.0", "utf-8", null);
using var stream = MemoryStreamFactory.GetStream();
var stream = MemoryStreamFactory.GetStream();
await document.SaveAsync(stream, SaveOptions.None, cancellationToken);
if (stream.Length >= ErrorLength)
Expand Down

0 comments on commit bb7359e

Please sign in to comment.