MCPcopy
hub / github.com/axios/axios / stopServer

Function stopServer

tests/unit/prototypePollution.test.js:444–446  ·  view source on GitHub ↗
(server)

Source from the content-addressed store, hash-verified

442 }
443
444 function stopServer(server) {
445 return new Promise((resolve) => server.close(resolve));
446 }
447
448 it('should not pick up Object.prototype.auth as an Authorization header', async () => {
449 Object.prototype.auth = { username: 'attacker', password: 'exfil' };

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected