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

Fix action not return #58

Closed soccermax closed 2 months ago

soccermax commented 2 months ago

empty body in batch

image image

current behavior old cds odata adapter

image

--> 204 | no content --> should have empty body

oklemenz2 commented 2 months ago

OK, good to know, I want to release tomorrow...

oklemenz2 commented 2 months ago

OK, I checked, OData V4 also returns empty body in that case. But it's super strange, because the content-type is application/json, and empty string is not a valid JSON... But, seems to be expected... I'm fine with it...

oklemenz2 commented 2 months ago

OK, I checked with old adapter, and there no content-type was set..., there I had body ""

Now with new odata adapter, content-type is applciation/json, but body is blank, that is inconcistent... I open a CAP issue...