Skip to Content
1
Sep 20, 2023 at 06:19 AM

SAP UI5 cannot handle lower case odata-version header

285 Views

Hi, I am starting a new internal UI5 project and am setting up a mock server using CAP CDS. However, it seems freestyle UI5 is unable to read the lowercase 'odata-version' header in the body of a $batch OData request.

As you can see, the header is present in the response of $batch but in lower case. May I know how to mitigate this? I tried to manually change the header in the request handler of the CAP project but it still returns as lower case.

image.png

image.png

Attachments

image.png (291.3 kB)
image.png (112.1 kB)