This repository was archived by the owner on Mar 18, 2019. It is now read-only.

Description
Hi,
This line of code unintentionally forces the encoding of all links to be "application/json".
|
return new document.Link(url, method, 'application/json', fields, title, description) |
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