Hi, This line of code unintentionally forces the encoding of all links to be "application/json". https://github.com/core-api/javascript-client/blob/78fe002cb4523b81a53b57c04365bf1380d0ad4f/lib/codecs/corejson.js#L86 I think what was intended was additional code for determining the encoding from the data and defaulting to application/json if necessary: ```javascript var encoding = getString(data, 'encoding') || 'application/json'; ... return new document.Link(_url, method, encoding, fields, _title, _description); ``` Hope this helps, Ed
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:
Hope this helps,
Ed