[Bug?]: Middleware with returned undici response ignores the content-type if the response body is async. #1426
Closed
2 tasks done
Labels
bug
Something isn't working
Duplicates
Latest version
Current behavior 馃槸
I get
Content-Type: text/html
if i return a response in a middleware with a async body.If the bodyStream is not async it does work.
Expected behavior 馃
I expect that the content-type passed as a headers is maintained in async and sync bodies on response.
Steps to reproduce 馃暪
Steps:
Context 馃敠
No response
Your environment 馃寧
The text was updated successfully, but these errors were encountered: