mirror of https://github.com/nodejs/node.git
doc: reword message.headers to indicate they are not read-only
message.headers states that the headers are read-only, when in fact they are not. This change rewords the docs to a more appropriate description, while not promoting this kind of behavior. Fixes: #3146 PR-URL: https://github.com/nodejs/node/pull/3814 Reviewed-By: Roman Klauke <romaaan.git@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>pull/3814/merge
parent
4008961a07
commit
934149a808
|
@ -806,7 +806,7 @@ Just like `'end'`, this event occurs only once per response.
|
|||
|
||||
The request/response headers object.
|
||||
|
||||
Read only map of header names and values. Header names are lower-cased.
|
||||
Key-value pairs of header names and values. Header names are lower-cased.
|
||||
Example:
|
||||
|
||||
// Prints something like:
|
||||
|
|
Loading…
Reference in New Issue