diff --git a/www-request.js b/www-request.js index d251c23..70140a7 100644 --- a/www-request.js +++ b/www-request.js @@ -102,7 +102,7 @@ module.exports = function (RED) { } } - if (node.ret === "obj") { + if (!("accept" in opts.headers) && node.ret === "obj") { opts.headers.accept = "application/json, text/plain;q=0.9, */*;q=0.8"; }