You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
EncoderHttpMessageWriter never sets Content-Length [SPR-16542] #21085
Currently only ResourceHttpMessageWriter and FormHttpMessageWriter set the Content-Length header. For any Encoder (String, byte[], ByteBuffer, etc) wrapped with EncoderHttpMessageWriter, there is no mechanism in place to set the Content-Length header, even in cases where a single item is provided synchronously (e.g. WebClient's syncBody, controller returning a String, etc.).
We should be able to set the content length in cases where the input Publisher is a Mono. That would provide parity with HttpMessageConverters, covering all single value cases (synchronous or asynchronous).
Activity