File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed
packages/node_modules/@node-red/nodes Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 91
91
< label for = "node-input-senderr" style = "width: auto" data-i18n = "httpin.senderr" > </ label >
92
92
</ div >
93
93
94
+ < div class = "form-row" >
95
+ < input type = "checkbox" id = "node-input-insecureHTTPParser" style = "display: inline-block; width: auto; vertical-align: top;" >
96
+ < label for = "node-input-insecureHTTPParser" , style = "width: auto;" data-i18n = "httpin.insecureHTTPParser" > </ label >
97
+ </ div >
98
+
94
99
95
100
< div class = "form-row" >
96
101
< label for = "node-input-ret" > < i class = "fa fa-arrow-left" > </ i > < span data-i18n = "httpin.label.return" > </ span > </ label >
227
232
persist : { value :false } ,
228
233
proxy : { type :"http proxy" , required : false ,
229
234
label :RED . _ ( "node-red:httpin.proxy-config" ) } ,
235
+ insecureHTTPParser : { value : false } ,
230
236
authType : { value : "" } ,
231
237
senderr : { value : false } ,
232
238
headers : { value : [ ] }
338
344
} else {
339
345
$ ( "#node-input-useProxy" ) . prop ( "checked" , false ) ;
340
346
}
347
+
348
+ if ( node . insecureHTTPParser ) {
349
+ $ ( "node-intput-insecureHTTPParser" ) . prop ( "checked" , true )
350
+ } else {
351
+ $ ( "node-intput-insecureHTTPParser" ) . prop ( "checked" , false )
352
+ }
341
353
updateProxyOptions ( ) ;
342
354
$ ( "#node-input-useProxy" ) . on ( "click" , function ( ) {
343
355
updateProxyOptions ( ) ;
Original file line number Diff line number Diff line change @@ -244,6 +244,10 @@ in your Node-RED user directory (${RED.settings.userDir}).
244
244
delete options . headers [ h ] ;
245
245
}
246
246
} )
247
+
248
+ if ( node . insecureHTTPParser ) {
249
+ options . insecureHTTPParser = true
250
+ }
247
251
}
248
252
] ,
249
253
beforeRedirect : [
Original file line number Diff line number Diff line change 554
554
},
555
555
"status" : {
556
556
"requesting" : " requesting"
557
- }
557
+ },
558
+ "insecureHTTPParser" : " Disable strict HTTP parsing"
558
559
},
559
560
"websocket" : {
560
561
"label" : {
You can’t perform that action at this time.
0 commit comments