From 522a950002ad2b3b89b7d31aaeed1e70191f7e70 Mon Sep 17 00:00:00 2001 From: Jesse Brand <58728143+Jessuhh@users.noreply.github.com> Date: Mon, 18 Mar 2024 16:50:26 +0100 Subject: [PATCH] Fix typo (#32075) --- aspnetcore/fundamentals/middleware/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aspnetcore/fundamentals/middleware/index.md b/aspnetcore/fundamentals/middleware/index.md index 909a0f5b35..d5fd15b0d8 100644 --- a/aspnetcore/fundamentals/middleware/index.md +++ b/aspnetcore/fundamentals/middleware/index.md @@ -52,10 +52,10 @@ Chain multiple request delegates together with [!WARNING] -> Don't call `next.Invoke` after the response has been sent to the client. Changes to after the response has started throw an exception. For example, [setting headers and a status code throw an exception](xref:fundamentals/best-practices#do-not-modify-the-status-code-or-headers-after-the-response-body-has-started). Writing to the response body after calling `next`: +> Don't call `next.Invoke` during or after the response has been sent to the client. After an has started, changes result in an exception. For example, [setting headers and a status code throw an exception](xref:fundamentals/best-practices#do-not-modify-the-status-code-or-headers-after-the-response-body-has-started) after the response starts. Writing to the response body after calling `next`: > -> * May cause a protocol violation. For example, writing more than the stated `Content-Length`. -> * May corrupt the body format. For example, writing an HTML footer to a CSS file. +> * May cause a protocol violation, such as writing more than the stated `Content-Length`. +> * May corrupt the body format, such as writing an HTML footer to a CSS file. > > is a useful hint to indicate if headers have been sent or the body has been written to.