This repository was archived by the owner on Mar 18, 2019. It is now read-only.
This repository was archived by the owner on Mar 18, 2019. It is now read-only.
Encoding forced to application/json #47
Open
Description
Hi,
This line of code unintentionally forces the encoding of all links to be "application/json".
javascript-client/lib/codecs/corejson.js
Line 86 in 78fe002
I think what was intended was additional code for determining the encoding from the data and defaulting to application/json if necessary:
var encoding = getString(data, 'encoding') || 'application/json';
...
return new document.Link(_url, method, encoding, fields, _title, _description);
Hope this helps,
Ed
Metadata
Metadata
Assignees
Labels
No labels