jetty / jetty.project

Eclipse Jetty® - Web Container & Clients - supports HTTP/2, HTTP/1.1, HTTP/1.0, websocket, servlets, and more
https://eclipse.dev/jetty
Other
3.79k stars 1.9k forks source link

Multipart content length #10307

Open gregw opened 10 months ago

gregw commented 10 months ago

Jetty version(s) 12

Enhancement Description

It would be more optimal to calculate length in org.eclipse.jetty.http.MultiPart.AbstractContentSource#getLength so that the content-length header can be set rather than using chunking or a a connection: close.

gregw commented 10 months ago

Update tests in DefaultServletTests when this is fixed.