Skip to content

Commit 1d5cbe7

Browse files
tflanaganrvagg
authored andcommitted
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: #3814 Reviewed-By: Roman Klauke <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 852b4c0 commit 1d5cbe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/api/http.markdown

+1-1
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ Just like `'end'`, this event occurs only once per response.
806806

807807
The request/response headers object.
808808

809-
Read only map of header names and values. Header names are lower-cased.
809+
Key-value pairs of header names and values. Header names are lower-cased.
810810
Example:
811811

812812
// Prints something like:

0 commit comments

Comments
 (0)