Hello!
I'm trying to add an http in
node that listens to a HEAD method request but this method is not in the list.
Is there any workaround for this? Maybe a global variable that I can set when Node-RED starts or something like that?
Hello!
I'm trying to add an http in
node that listens to a HEAD method request but this method is not in the list.
Is there any workaround for this? Maybe a global variable that I can set when Node-RED starts or something like that?
as per documentation
https://cookbook.nodered.org/http/set-request-header
No, those docs are specifically for http-request nodes, not http-in. I’m trying to think of something, but short of diving directly into express and add middleware for it I can’t come up with something
I see.
That can be added to settings.js (see middleware)
If you set it to GET - and it receives a HEAD request - I think it will do the right thing and just send the headers...
You are totally right! It works perfectly. Can't believe I didn't tried that before. Thank you!