File tree Expand file tree Collapse file tree 1 file changed +0
-30
lines changed
javascript/ql/src/Security/CWE-444/examples Expand file tree Collapse file tree 1 file changed +0
-30
lines changed Original file line number Diff line number Diff line change 1- // test NodeJS
2- const https = require ( 'node:https' ) ;
31const http = require ( 'node:http' ) ;
42
5- https . createServer ( {
6- insecureHTTPParser : true
7- } , ( req , res ) => {
8- res . writeHead ( 200 ) ;
9- res . end ( 'hello world\n' ) ;
10- } ) ;
11-
123http . createServer ( {
134 insecureHTTPParser : true
145} , ( req , res ) => {
15- res . writeHead ( 200 ) ;
16- res . end ( 'hello world\n' ) ;
17- } ) ;
18-
19- http . get ( { insecureHTTPParser : true } , ( res ) => {
20- res . writeHead ( 200 ) ;
21- res . end ( 'hello world\n' ) ;
22- } ) ;
23-
24- http . get ( 'url' , { insecureHTTPParser : true } , ( res ) => {
25- res . writeHead ( 200 ) ;
26- res . end ( 'hello world\n' ) ;
27- } ) ;
28-
29- http . request ( { insecureHTTPParser : true } , ( res ) => {
30- res . writeHead ( 200 ) ;
31- res . end ( 'hello world\n' ) ;
32- } ) ;
33-
34- http . request ( 'url' , { insecureHTTPParser : true } , ( res ) => {
35- res . writeHead ( 200 ) ;
366 res . end ( 'hello world\n' ) ;
377} ) ;
You can’t perform that action at this time.
0 commit comments