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

OData request headers #154

Closed
morious opened this issue Jun 29, 2016 · 2 comments
Closed

OData request headers #154

morious opened this issue Jun 29, 2016 · 2 comments

Comments

@morious
Copy link

morious commented Jun 29, 2016

Hi,
I am trying to control the headers of an OData request from breeze.
I came across these line in breeze js code:
OData.read({
requestUri: url,
// headers: { "Accept": "application/json"}
headers: { Accept: 'application/json;odata.metadata=full' }
},

IT would make sense for the OData adapter headers to be taken into consideration, ex: merged into this hard coded headers obj.
Is it a fair statement or am i missing something?

Thanks!

@steveschmitt
Copy link
Member

Yes, that makes perfect sense. I just checked in a fix, which will be in the 1.5.8 release.

@morious
Copy link
Author

morious commented Jul 1, 2016

This is great Steve. Thx!

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