cap-js-community / odata-v2-adapter

OData V2 adapter for CDS. Exposes a full-fledged OData V2 service, converting OData V2 requests to CDS OData V4 service calls and responses back.
https://www.npmjs.com/package/@cap-js-community/odata-v2-adapter
Apache License 2.0
23 stars 8 forks source link

Wrong content-length when convert multipart $batch http request #56

Closed MatthewGeekTalk closed 2 months ago

MatthewGeekTalk commented 3 months ago

Hi Colleagues,

We are planning upgrade CAP from 7.7.3 to 8.0.1. But we are facing a content-length issue. CAP introduce a new file multipartToJson.js to handle $batch request. We have created a CAP issue and CAP team already fixed it.

But we are still facing another content-length issue below.

image
oklemenz2 commented 3 months ago

Thanks for reporting. Haven’t tested with CDS 8 yet, as it is in milestone, but I guess a fix can be done anyways. I will have a look.

oklemenz2 commented 3 months ago

Can you check release 1.12.12, that should solve your issue: https://github.com/cap-js-community/odata-v2-adapter/releases/tag/v1.12.12 Thanks again for reporting this issue and your detailed analysis...