MCPcopy Create free account
hub / github.com/cure53/DOMPurify / sendError

Function sendError

test/browser/server.js:33–36  ·  view source on GitHub ↗
(res, status)

Source from the content-addressed store, hash-verified

31 * even if a header or body somehow contained markup it would not be rendered
32 * as HTML by the receiving browser. */
33function 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

Callers 1

server.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected