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' ) ;
3
1
const http = require ( 'node:http' ) ;
4
2
5
- https . createServer ( {
6
- insecureHTTPParser : true
7
- } , ( req , res ) => {
8
- res . writeHead ( 200 ) ;
9
- res . end ( 'hello world\n' ) ;
10
- } ) ;
11
-
12
3
http . createServer ( {
13
4
insecureHTTPParser : true
14
5
} , ( 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 ) ;
36
6
res . end ( 'hello world\n' ) ;
37
7
} ) ;
You can’t perform that action at this time.
0 commit comments