Click here to Skip to main content
15,911,531 members

Comments by Dev Mo (Top 4 by date)

Dev Mo 21-Feb-21 14:32pm View    
this case not with all devices just some devices on Win10,
all my reference library from NuGet and it is popular.
Dev Mo 16-Feb-21 2:34am View    
Dear Richard
thank you so much,
I have applied your code.
The following error appeared: Cannot access a closed Stream.
I edited this "using (var writer = new StreamWriter(modifiedResponseBody))"
to "using (var writer = new StreamWriter(modifiedResponseBody, Encoding.UTF8, -1, true))".
then The following error appeared: Response Content-Length mismatch: too many bytes written.
I added this "context.Response.ContentLength = modifiedResponseBody.Length;"
befor "await modifiedResponseBody.CopyToAsync(originalBodyStream);"

Now it is working fine.

thank you.
Dev Mo 15-Feb-21 9:37am View    
thank you I will read your example, for now just I need to return a new response what I can do, I believe that will be a simple tip
Dev Mo 15-Feb-21 9:27am View    
I make it a normal method, nothing happens
if you can help me I will be thankful