mirror of
https://github.com/Effect-TS/effect.git
synced 2026-12-05 03:45:36 +08:00
Co-authored-by: Effect Bot <tech-ops@effectful.co> Co-authored-by: Tim Smart <hello@timsmart.co>
632 B
632 B
effect, @effect/platform-node
| effect | @effect/platform-node |
|---|---|
| patch | patch |
- Fix HTTPS detection in
HttpServerRequest.toURLand tracing. An exacthttporhttpsinx-forwarded-prototakes precedence; otherwise, infer HTTPS fromoriginalUrl. Paths starting with//preserve the request host. - Node server requests now expose an absolute
originalUrlwhen a Host header is present, fixingHttpMiddleware.searchParamsParser. Useurlinstead oforiginalUrlto read the path. Hostless requests are unchanged. - For absolute-form Node requests, derive
urlandheaders.hostfrom the request target, ignoring a conflicting Host header.