1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

re-add return to http request (removed in error)

This commit is contained in:
Dave Conway-Jones 2017-05-20 02:35:41 +01:00
parent e69e5b4f50
commit 790d6912fd
No known key found for this signature in database
GPG Key ID: 81B04231572A9A2D

View File

@ -53,6 +53,7 @@ module.exports = function(RED) {
}
if (!url) {
node.error(RED._("httpin.errors.no-url"),msg);
return;
}
// url must start http:// or https:// so assume http:// if not set
if (url.indexOf("://") !== -1 && url.indexOf("http") !== 0) {