(res, status)
| 31 | * even if a header or body somehow contained markup it would not be rendered |
| 32 | * as HTML by the receiving browser. */ |
| 33 | function sendError(res, status) { |
| 34 | res.writeHead(status, { 'Content-Type': 'text/plain; charset=utf-8' }); |
| 35 | res.end(String(status)); |
| 36 | } |
| 37 | |
| 38 | /* True iff `child` is the same as, or resides inside, `parent`. |
| 39 | * Uses path.relative semantics which CodeQL recognizes as a path-containment |