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

Review #1

Open
AMashoshyna opened this issue Mar 5, 2018 · 2 comments
Open

Review #1

AMashoshyna opened this issue Mar 5, 2018 · 2 comments

Comments

@AMashoshyna
Copy link
Owner

No description provided.

@jsninjabot
Copy link

Приветствую, Анастасия

https://github.com/AMashoshyna/nodejs_basic/blob/http-server/http-server/http.js#L32-L33
Здесь нет смысла вызывать read()

https://github.com/AMashoshyna/nodejs_basic/blob/http-server/http-server/http.js#L70-L81
Если я вызову writeHead, а потом уже сделаю pipe - то смогу дважды отправить statusLine и заголовки. Более того, не кажется ли вам что это место подозрительно похоже на
https://github.com/AMashoshyna/nodejs_basic/blob/http-server/http-server/http.js#L50-L52
;)

// @xanf

@jsninjabot
Copy link

В методе setHeader если параметры не правильны, то лучше проигнорировать такие данные а не генерировать ошибку.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants