diff --git a/packages/node_modules/@node-red/nodes/core/io/21-httprequest.html b/packages/node_modules/@node-red/nodes/core/io/21-httprequest.html
index d4cd94aba..3ab6211ec 100644
--- a/packages/node_modules/@node-red/nodes/core/io/21-httprequest.html
+++ b/packages/node_modules/@node-red/nodes/core/io/21-httprequest.html
@@ -25,11 +25,17 @@
+
+
+
+
+
+
@@ -149,6 +155,7 @@
name: {value:""},
method:{value:"GET"},
ret: {value:"txt"},
+ usePayloadAsParameters: {value: false},
url:{value:"",validate:function(v) { return (v.trim().length === 0) || (v.indexOf("://") === -1) || (v.trim().indexOf("http") === 0)} },
tls: {type:"tls-config",required: false},
proxy: {type:"http proxy",required: false}
@@ -179,6 +186,13 @@
$('#node-input-password').val('');
}
});
+ $("#node-input-method").change(function() {
+ if ($(this).val() == "GET") {
+ $(".node-input-usePayloadAsParameters-row").show();
+ } else {
+ $(".node-input-usePayloadAsParameters-row").hide();
+ }
+ });
if (this.credentials.user || this.credentials.has_password) {
$('#node-input-useAuth').prop('checked', true);
} else {