From f93df511558609fad38fe0ae34635c7c914ad2f8 Mon Sep 17 00:00:00 2001 From: "Mark S. Everitt" Date: Wed, 6 Feb 2019 22:17:23 +0000 Subject: http: makes response.writeHead return the response Fixes: https://github.com/nodejs/node/issues/25935 PR-URL: https://github.com/nodejs/node/pull/25974 Reviewed-By: Anna Henningsen Reviewed-By: Luigi Pinca --- doc/api/http.md | 16 +++++++++++++--- lib/_http_server.js | 2 ++ .../test-http-response-writehead-returns-this.js | 22 ++++++++++++++++++++++ 3 files changed, 37 insertions(+), 3 deletions(-) create mode 100644 test/parallel/test-http-response-writehead-returns-this.js diff --git a/doc/api/http.md b/doc/api/http.md index 8803078569..87de5a9bba 100644 --- a/doc/api/http.md +++ b/doc/api/http.md @@ -1450,6 +1450,10 @@ the request body should be sent. See the [`'checkContinue'`][] event on