mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
Include example
This commit is contained in:
@@ -1,37 +1,7 @@
|
||||
// test NodeJS
|
||||
const https = require('node:https');
|
||||
const http = require('node:http');
|
||||
|
||||
https.createServer({
|
||||
insecureHTTPParser: true
|
||||
}, (req, res) => {
|
||||
res.writeHead(200);
|
||||
res.end('hello world\n');
|
||||
});
|
||||
|
||||
http.createServer({
|
||||
insecureHTTPParser: true
|
||||
}, (req, res) => {
|
||||
res.writeHead(200);
|
||||
res.end('hello world\n');
|
||||
});
|
||||
|
||||
http.get({ insecureHTTPParser: true }, (res) => {
|
||||
res.writeHead(200);
|
||||
res.end('hello world\n');
|
||||
});
|
||||
|
||||
http.get('url', { insecureHTTPParser: true }, (res) => {
|
||||
res.writeHead(200);
|
||||
res.end('hello world\n');
|
||||
});
|
||||
|
||||
http.request({ insecureHTTPParser: true }, (res) => {
|
||||
res.writeHead(200);
|
||||
res.end('hello world\n');
|
||||
});
|
||||
|
||||
http.request('url', { insecureHTTPParser: true }, (res) => {
|
||||
res.writeHead(200);
|
||||
res.end('hello world\n');
|
||||
});
|
||||
Reference in New Issue
Block a user