Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect OData-Version header in Northwind service #205

Open
IObert opened this issue Feb 17, 2020 · 1 comment
Open

Incorrect OData-Version header in Northwind service #205

IObert opened this issue Feb 17, 2020 · 1 comment

Comments

@IObert
Copy link
Contributor

IObert commented Feb 17, 2020

Hi,

I’m writing to you because I found an issue in your public Northwind v4 service (which I love btw).

When I send a Post request to:
https://services.odata.org/v4/Northwind/Northwind.svc/$batch

Headers:

Accept:multipart/mixed
Content-Type:multipart/mixed; boundary=batch_id-1581942277805-14

Payload:

--batch_id-1581942277805-14
Content-Type:application/http
Content-Transfer-Encoding:binary

GET Products?$orderby=ProductName&$select=ProductID,ProductName,UnitPrice&$skip=0&$top=20 HTTP/1.1
Accept:application/json;odata.metadata=minimal;IEEE754Compatible=true
Accept-Language:en-US
Content-Type:application/json;charset=UTF-8;IEEE754Compatible=true

I get the following reponse:

--batchresponse_9f4b4742-3191-4a93-8d59-e22fb6ab2412
Content-Type: application/http
Content-Transfer-Encoding: binary

HTTP/1.1 200 OK
OData-Version: 4.0;
Content-Type: application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=true;charset=utf-8
X-Content-Type-Options: nosniff
Cache-Control: no-cache

...

The bug occurs in the line OData-Version: 4.0; which afaik should NOT contain the semi-colon in the end.

Can you confirm that this is an incorrect header, e.g. not protocol-compliant?

@dominikfeininger
Copy link

Issue still exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants