Skip to content

http: make path null in Agent#createSocket

This prevents net.createConnection from thinking the request should be made using a unix socket. Without this fix, test/simple/test-http-agent-path.js will emit a ENOTSOCK error.

This PR replaces https://github.com/nodejs/node/pull/4400 since it was targeting the wrong branch.

Merge request reports

Loading