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.