-
-
Notifications
You must be signed in to change notification settings - Fork 34k
Closed
Labels
httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.questionIssues that look for answers.Issues that look for answers.
Description
- Subsystem: http
Agent.prototype.addRequest() in the _http_agent.js checks for a Legacy API with a string type of the options parameter. However, this method called only with this call chain:
http.request() in http.js -> exports.ClientRequest() in _http_client.js -> Agent.prototype.addRequest() in the _http_agent.js.
On the ClientRequest() stage any string is converted to Object.
Is there any reason to keep this Legacy API check in the Agent.prototype.addRequest()? Is this function called from a userland or in any other way?
Metadata
Metadata
Assignees
Labels
httpIssues or PRs related to the http subsystem.Issues or PRs related to the http subsystem.questionIssues that look for answers.Issues that look for answers.