-
I have an ASP.NET Core web api that needs to be tested with requests that lack a How can I suppress this behavior, thus sending a streaming request entity without the My test content here: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is due to #24984.
All HTTP/1.1 requests must have a valid Content-Length header or a Transfer-Encoding: chunked header. That's enforced by the server. TestServer was updated to more closely mirror a valid client and generate the expected headers.
That shouldn't be happening. Can you show how you created the non-seekable stream? The ContentLength property is checked, but that shouldn't trigger full buffering. For a streaming request you can avoid any of the new logic by setting |
Beta Was this translation helpful? Give feedback.
This is due to #24984.
All HTTP/1.1 requests must have a valid Content-Length header or a Transfer-Encoding: chunked header. That's enforced by the server. TestServer was updated to more closely mirror a valid client and generate the expected headers.
That shouldn't be happening. Can you show how you created the non-seekable stream? The ContentLength property is checked, but that shouldn't trigger full buffering. For a streaming request you can avoid any of the new logic by setting
HttpRequestMessa…