2.0.2 Http Request node header casing lost

After upgrading I've got at least one Http Request node that seems to be broken... It sets up a request message and sets the "Host" header as follows, but the request now fails, claiming I'm not sending that header,

var newMsg = {};
newMsg.url = "http://192.168.1.52/getData.json";
newMsg.headers = {};
newMsg.headers["Host"] = "192.168.1.52";
newMsg.headers["Authorization"] = "Basic HARDCODEDBASICAUTH";
return newMsg;

I see there's a few different tickets open around the Http Request nodes having some oddities right now, does this fit in with one of them?

Edit: Possibly because a case sensitive issue around the header name being toLowercase() here: node-red/21-httprequest.js at master · node-red/node-red · GitHub

Please open an issue on GitHub so we can keep track.

:+1:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.