Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Commit d825f56

Browse files
delete shouldn't have a response body
1 parent d8df1fa commit d825f56

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/SqlStreamStore.HAL/HttpContextExtensions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ public static async Task WriteHalResponse(this HttpContext context, Response res
3131
context.Response.Headers.Append(header.Key, header.Value);
3232
}
3333

34+
if(context.IsDelete())
35+
{
36+
return;
37+
}
38+
3439
using(var writer = new JsonTextWriter(new StreamWriter(context.Response.Body))
3540
{
3641
CloseOutput = false

0 commit comments

Comments
 (0)