Previously, unsigned -1 size was returned for those bodies.
Old adapters relying on that buggy behavior will now throw:
!"attempt to use unknown libecap::BodySize size"
Such adapters should check libecap::BodySize::known() before
using the libecap::Body::bodySize() value.
Adaptation::Ecap::BodyRep::BodySize
Adaptation::Ecap::BodyRep::bodySize() const
{
- return !theBody ? BodySize() : BodySize(theBody->bodySize());
+ return (theBody && theBody->bodySizeKnown()) ? BodySize(theBody->bodySize()) : BodySize();
}
/* MessageRep */