TestServer ignores stream position passed through StreamContent #33780
Labels
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
✔️ Resolution: Won't Fix
Resolved because we decided not to change the behavior reported in this issue.
Status: Resolved
Describe the bug
When using TestServer, HttpClient sends the whole stream from the start, the actual position in the stream is ignored.
Test below shows passing stream with length = 3 and position = 1
I expect that only 2 bytes would be passed to the controller
The same problem with FileStream and with any stream that support Seek operation.
To Reproduce
Further technical details
dotnet --info
:The text was updated successfully, but these errors were encountered: