Merge commit '36c66dd290d3ce6eb1ccd310d0c658d4a32bb8eb' as 'repos/effect'
This commit is contained in:
7
repos/effect/.changeset/good-tools-work.md
Normal file
7
repos/effect/.changeset/good-tools-work.md
Normal file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
"effect": patch
|
||||
---
|
||||
|
||||
HttpServerResponse: fix `fromWeb` to preserve Content-Type header when response has a body
|
||||
|
||||
Previously, when converting a web `Response` to an `HttpServerResponse` via `fromWeb`, the `Content-Type` header was not passed to `Body.stream()`, causing it to default to `application/octet-stream`. This affected any code using `HttpApp.fromWebHandler` to wrap web handlers, as JSON responses would incorrectly have their Content-Type set to `application/octet-stream` instead of `application/json`.
|
||||
Reference in New Issue
Block a user