Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
berezovskyi committed Nov 13, 2024
1 parent 7006437 commit 5ef32eb
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,11 @@ private async Task SerializeGraph(StringSegment contentType, IGraph graph,
rdfWriter = oslcXmlWriter;
}

using (var writer = new HttpResponseStreamWriter(httpContextResponse.BodyWriter.AsStream(), Encoding.UTF8))
{
rdfWriter.Save(graph, writer);
}
await using var writer =
new HttpResponseStreamWriter(httpContextResponse.BodyWriter.AsStream(),
Encoding.UTF8);
rdfWriter.Save(graph, writer);
}
}

public static class RdfOutputFormatterExtensions
Expand Down

0 comments on commit 5ef32eb

Please sign in to comment.