-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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: merging behavior of writeHead vs setHeader #5081
Conversation
It may also be worth noting this in the |
|
||
```js | ||
// returns content-type = text/plain | ||
const server = http.createServer( (req,res) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove the extra space between (
s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked over other code examples in the same file to maintain consistency and found:
[a0viedo@arya node]$ grep doc/api/http.markdown -r -e "((" | wc -l
0
[a0viedo@arya node]$ grep doc/api/http.markdown -r -e "( (" | wc -l
3
I don't have any context in which one is following the style, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
((
is what we would use in core.
LGTM, but @bengl's comment is worth addressing as well. |
LGTM. Landed in 3da7d13. |
PR-URL: #5081 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
PR-URL: #5081 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
PR-URL: #5081 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
PR-URL: #5081 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
PR-URL: #5081 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Roman Reiss <me@silverwind.io>
Original contribution of @aredridel with some minor fixes discussed at #3895.
cc @nodejs/documentation