JP Moresmau created OLINGO-1266:
-----------------------------------
Summary: Content is returned as XML with Content-Type set to JSON
Key: OLINGO-1266
URL: https://issues.apache.org/jira/browse/OLINGO-1266
Project: Olingo
Issue Type: Bug
Components: odata4-server
Affects Versions: (Java) V4 4.4.0
Reporter: JP Moresmau
If I do a OData request passing Accept: application/json
I get the result properly as JSON.
I send Accept:application/json;odata=minimalmetadata;q=1.0
I get a HTTP 406 error.
I send Accept:
application/json;odata=minimalmetadata;q=1.0,application/atomsvc+xml;q=0.8,application/atom+xml;q=0.8,application/xml;q=0.7,text/plain;q=0.7
Then I get data back as XML (presumably because we don't support
minimalmetadata for JSON), but the content type is
application/json;odata=minimalmetadata.
I found this issue while trying to use Excel to call an OData service, so these
are Accept headers Excel construct.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)