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: fix http.createServer for versions before v9.6.0 #24856

Closed
wants to merge 1 commit into from

Conversation

aautio
Copy link

@aautio aautio commented Dec 5, 2018

Fixes: #24105

Checklist

@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 Dec 5, 2018
Copy link
Member

@Trott Trott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @aautio! Welcome, and thanks for the pull request!

You don't want to remove this documentation from the master branch. It is correct on master! This change needs to be targeted at the v8.x-staging branch instead. Would you mind doing that? You'll probably need to close this and open a new PR (I think).

The `requestListener` is a function which is automatically
added to the [`'request'`][] event.

## http.createServer([options][, requestListener])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On 8.x-staging, you'll need to remove this stuff too. This function signature doesn't work on 8.x, which is what this doc change is fixing.

@aautio
Copy link
Author

aautio commented Dec 5, 2018

@Trott thanks for the quick feedback! I'll switch branch and submit a new pr.

@aautio aautio closed this Dec 5, 2018
@aautio aautio deleted the issue-24105 branch December 6, 2018 09:16
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.

None yet

3 participants