Changes since 24.9.15
Fixes
-
Filter hop-by-hop headers in dev server proxy (#24092) (CP: 24.9)
Commit · Pull requestThe dev server proxy in
AbstractDevServerRunnerforwarded all HTTP headers between the browser and the Vite dev server, including hop-by-hop headers that must not be forwarded by a proxy per RFC 9110 Section 7.6.1. It also forwarded the upstream Content-Length which may not match the actual bytes after HttpURLConnection decoding, causing broken responses on some servlet containers. This change filters hop-by-hop headers and Content-Length from proxied requests and responses, and avoids closing the output stream aftersendError(). Related to #23564