diff --git a/nodes/core/io/21-httpin.js b/nodes/core/io/21-httpin.js index abc2431a7..877ccc09e 100644 --- a/nodes/core/io/21-httpin.js +++ b/nodes/core/io/21-httpin.js @@ -171,7 +171,13 @@ module.exports = function(RED) { if (msg.headers) { for (var v in msg.headers) { if (msg.headers.hasOwnProperty(v)) { - opts.headers[v.toLowerCase()] = msg.headers[v]; + var name = v.toLowerCase(); + if (name !== "content-type" && name !== "content-length") { + // only normalise the known headers used later in this + // function. Otherwise leave them alone. + name = v; + } + opts.headers[name] = msg.headers[v]; } } }