dotnet / WatsonWebserver

Watson is the fastest, easiest way to build scalable RESTful web servers and services in C#.
MIT License
403 stars 83 forks source link

Fixed Sending Chunked Data Example Code in Readme #78

Closed Binozo closed 2 years ago

Binozo commented 2 years ago

Hello,

I noticed that the example code for sending Chunked Data is not working correctly.

Bigger files get received corrupt.

I decreased the buffer size to 4096 because the old buffer size 65536 was way too big and could cause errors. After wrapping the sending part with a while-loop it started working for bigger files too.

Best Regards, Binozo