Download Latest Version v5.4.7 source code.zip (626.9 kB)
Home / v4.16.5
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-11-15 800 Bytes
v4.16.5 source code.tar.gz 2026-11-15 471.7 kB
v4.16.5 source code.zip 2026-11-15 531.4 kB
Totals: 3 Items   1.0 MB 1

Security

  • Proxy middleware: a client could remove X-Forwarded-Proto from the upstream request by naming it in the Connection header, on plain HTTP requests and WebSocket upgrades. The proxy now sets X-Forwarded-Proto again after Go removes hop-by-hop headers, as it already does for X-Real-IP. Fixes GHSA-h6x5-phvw-c55c. Reported by zachary-satterly.

Behavior change

A custom balancer that replaces the request and sets its own X-Forwarded-Proto no longer reaches the upstream with that value; the proxy uses the scheme of the original request. A custom ProxyConfig.Transport can still set the header.

No public API, dependency or minimum Go-version changes; Go 1.26 or later remains required.

Source: README.md, updated 2026-11-15