Skip to content

Commit 59314a7

Browse files
committed
MemoryStream bug fix
1 parent da6a46e commit 59314a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/SharedKernel/Logging/RequestLoggingMiddleware.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ public async Task InvokeAsync(HttpContext context)
7676
requestLog.Body,
7777
responseLog.Headers,
7878
responseLog.Body);
79-
79+
80+
responseBody.Seek(0, SeekOrigin.Begin);
8081
await responseBody.CopyToAsync(originalBodyStream);
8182
}
8283
}

0 commit comments

Comments
 (0)