deno
a253d1ae - fix(http): preserve trust proxy environment setting (#36073)

Commit
130 days ago
fix(http): preserve trust proxy environment setting (#36073) ## Summary - keep `DENO_TRUST_PROXY_HEADERS` in the process environment after caching its value - extend the existing serve spec to cover the setting after the first request ## Details `trust_proxy_headers()` initializes its cached configuration when the first request is handled. That initialization also removed the environment variable, so reading the configuration had an unexpected process-wide side effect after startup. This keeps the existing cached behavior while leaving the process environment unchanged. ## Validation - `./tools/format.js` - `cargo check -p deno_http` - `cargo build --bin deno` - `cargo test -p specs_tests --test specs -- trust_proxy_headers`
Author
Parents
Loading