Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: HTTP Module request.reusedSocket documentation sample code error fix #55478

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

koushil-mankali
Copy link

@koushil-mankali koushil-mankali commented Oct 21, 2024

doc: HTTP Module request.reusedSocket documentation sample code has a error, their is no agent variable declared in the sample code but that agent variable is used in the request object, which is really confusing for the reader, from where does the agent variable is taken.

So, fixed the code by adding the agent variable and taking the http.agent initalization.

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/http
  • @nodejs/net

@nodejs-github-bot nodejs-github-bot added doc Issues and PRs related to the documentations. http Issues or PRs related to the http subsystem. labels Oct 21, 2024
@avivkeller
Copy link
Member

Hi! Can you please amend your commit message to have a valid subsystem? In this case, it should begin with doc:

@koushil-mankali
Copy link
Author

koushil-mankali commented Oct 21, 2024 via email

@koushil-mankali koushil-mankali changed the title HTTP Module: request.reusedSocket documentation sample code error fix doc: HTTP Module request.reusedSocket documentation sample code error fix Oct 21, 2024
@Ethan-Arrowood
Copy link
Contributor

You only changed the PR title, try using git commit --amend

… error, their is no agent variable declared in the sample code but that agent variable is used in the request object, which is really confusing for the reader, from where does the agent variable is taken.

So, fixed the code by adding the agent variable and taking the http.agent initalization.
@koushil-mankali
Copy link
Author

You only changed the PR title, try using git commit --amend

Done, amended commit.

@koushil-mankali
Copy link
Author

koushil-mankali commented Oct 22, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations. http Issues or PRs related to the http subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants