Commit dedd0612 authored by pooja d.p's avatar pooja d.p Committed by Rich Trott
Browse files

http: enable call chaining with setHeader()

Make `response.setHeader` return the response object itself
so that multiple header setting can be chained.

Fixes: https://github.com/nodejs/node/issues/33148

PR-URL: https://github.com/nodejs/node/pull/35924


Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
Reviewed-By: default avatarRicky Zhou <0x19951125@gmail.com>
Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
parent f34866a6
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment