3.20.1

expressjs/express3.20.1Mar 1, 2015by dougwilson

AI Summary

This is a bug fix release for Express 3.x that addresses issues with the 'trust proxy' hops count configuration. It fixes `req.host`, `req.protocol`, and `req.secure` to properly return the correct values when Express is configured to trust proxy headers from upstream load balancers or reverse proxies.

Key Highlights

  • Fixed `req.host` returning incorrect value when using 'trust proxy' hops count
  • Fixed `req.protocol` returning incorrect value when using 'trust proxy' hops count
  • Fixed `req.secure` returning incorrect value when using 'trust proxy' hops count

Full Release Notes

- Fix `req.host` when using "trust proxy" hops count
- Fix `req.protocol`/`req.secure` when using "trust proxy" hops count