Closed MatthewGeekTalk closed 2 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.
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...
Hi Colleagues,
We are planning upgrade CAP from
7.7.3
to8.0.1
. But we are facing acontent-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.
$batch
request from fronted side. You can see thecontent-length
is80
.Content-length
is till80
before the below coding fromv2 proxy
.The below coding deleted the
__metadata
but didn't adjust thecontent-length
After the method
convertRequestData
, you can see the body is changed to{}
but thecontent-length
is still80
, It should be2
.At last, empty body
{}
andcontent-length: 80
will be pass to CAP server and got the below error.