mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
parent
5c5855751c
commit
6c648e4bab
@ -91,6 +91,11 @@
|
|||||||
<label for="node-input-senderr" style="width: auto" data-i18n="httpin.senderr"></label>
|
<label for="node-input-senderr" style="width: auto" data-i18n="httpin.senderr"></label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="form-row">
|
||||||
|
<input type="checkbox" id="node-input-insecureHTTPParser" style="display: inline-block; width: auto; vertical-align: top;">
|
||||||
|
<label for="node-input-insecureHTTPParser", style="width: auto;" data-i18n="httpin.insecureHTTPParser"></label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<label for="node-input-ret"><i class="fa fa-arrow-left"></i> <span data-i18n="httpin.label.return"></span></label>
|
<label for="node-input-ret"><i class="fa fa-arrow-left"></i> <span data-i18n="httpin.label.return"></span></label>
|
||||||
@ -120,6 +125,7 @@
|
|||||||
tls: {type:"tls-config",required: false},
|
tls: {type:"tls-config",required: false},
|
||||||
persist: {value:false},
|
persist: {value:false},
|
||||||
proxy: {type:"http proxy",required: false},
|
proxy: {type:"http proxy",required: false},
|
||||||
|
insecureHTTPParser: {value: false},
|
||||||
authType: {value: ""},
|
authType: {value: ""},
|
||||||
senderr: {value: false}
|
senderr: {value: false}
|
||||||
},
|
},
|
||||||
@ -224,6 +230,12 @@
|
|||||||
} else {
|
} else {
|
||||||
$("#node-input-useProxy").prop("checked", false);
|
$("#node-input-useProxy").prop("checked", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (node.insecureHTTPParser) {
|
||||||
|
$("node-intput-insecureHTTPParser").prop("checked", true)
|
||||||
|
} else {
|
||||||
|
$("node-intput-insecureHTTPParser").prop("checked", false)
|
||||||
|
}
|
||||||
updateProxyOptions();
|
updateProxyOptions();
|
||||||
$("#node-input-useProxy").on("click", function() {
|
$("#node-input-useProxy").on("click", function() {
|
||||||
updateProxyOptions();
|
updateProxyOptions();
|
||||||
|
@ -214,6 +214,10 @@ in your Node-RED user directory (${RED.settings.userDir}).
|
|||||||
delete options.headers[h];
|
delete options.headers[h];
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (node.insecureHTTPParser) {
|
||||||
|
options.insecureHTTPParser = true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
beforeRedirect: [
|
beforeRedirect: [
|
||||||
|
@ -525,7 +525,8 @@
|
|||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"requesting": "requesting"
|
"requesting": "requesting"
|
||||||
}
|
},
|
||||||
|
"insecureHTTPParser": "Lenient HTTP Header Parsing"
|
||||||
},
|
},
|
||||||
"websocket": {
|
"websocket": {
|
||||||
"label": {
|
"label": {
|
||||||
|
Loading…
Reference in New Issue
Block a user