users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Re: get rid of getSize/Length

From: Bill Burke <bburke_at_redhat.com>
Date: Mon, 04 Jun 2012 12:58:30 -0400

On 6/4/12 10:38 AM, Santiago Pericas-Geertsen wrote:
>> I fixed a bug a few months ago where our container set the Content-Length header based on MBW.getSize() and we had gzip encoding on, so the value Content-Length ended up being wrong.
>
> What if we state that JAX-RS implementations must not update Content-Length after calling writeTo()?
>

That doesn't cut it I don't think.

Is my above case a problem with Resteasy? Or a problem with getSize()?
  Content-Length reflects the actual bits on the wire right? So, if
there is any type of encoding, won't getSize() always be wrong?


-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com