Browse Source

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>
v5.x
Tristian Flanagan 9 years ago
committed by Jeremiah Senkpiel
parent
commit
5d1faa28cb
  1. 2
      doc/api/http.markdown

2
doc/api/http.markdown

@ -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…
Cancel
Save