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

Requests for $metadata has Accept: application/json;odata.metadata=full #148

Closed
prilling opened this issue May 11, 2016 · 1 comment
Closed

Comments

@prilling
Copy link

prilling commented May 11, 2016

Response from $metadata can only be in XML, but the Breeze client (breeze.dataService.odata.js) is asking for json. This is wrong and causes the server to respond with 406.

Here is what the spec says about Accept: "If no Accept header field is present, then it is assumed that the client accepts all media types. If an Accept header field is present, and if the server cannot send a response which is acceptable according to the combined Accept field value, then the server SHOULD send a 406 (not acceptable) response." -- https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

@prilling prilling changed the title Requests for $metadata has Accept=application/json;odata.metadata=full Requests for $metadata has Accept: application/json;odata.metadata=full May 11, 2016
@steveschmitt
Copy link
Member

Good point. I changed it to "application/*; odata.metadata=full". Fix will be in v1.5.11

Thanks for pointing this out.

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