Best and Recommended ASP.NET 1.1 Hosting Tutorial – How to Using ASP.NET Core’s middleware to modify response body

Note: the issue referenced in this post has been fixed and will get released with ASP.NET Core 1.1. | Best and cheap ASP.NET Core 1.1 Hosting. In this post I will explain you to using ASP.NET Core’s middleware to modify response body. While creating a small piece of middleware to modify the response body’s content, sometimes we  had trouble getting anything to appear in my browser. I would get a 200 response-code, but no content (i.e. Content-Length: 0). Here is an example that creates a similar setup:

vector people programing develop web site and application


Best and Recommended ASP.NET Core 1.1 Hosting Click Here !!

Initial response

Turns out this is a known issue and has an easy workaround which involves storing the original response stream and setting back to it after the middlewares are called:

Updated Startup.cs

New response

I hope this article helpful for you, happy coding 🙂