Browse Source

doc: HTTP response getHeader doc fix

According to https://github.com/nodejs/node/issues/10803
getHeader need not be called only before it is flushed implicitly.

PR-URL: https://github.com/nodejs/node/pull/10817
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
v6.x
Faiz Halde 8 years ago
committed by Myles Borins
parent
commit
5118e05b15
No known key found for this signature in database GPG Key ID: 933B01F40B5CA946
  1. 5
      doc/api/http.md

5
doc/api/http.md

@ -917,9 +917,8 @@ added: v0.4.0
* `name` {String}
* Returns: {String}
Reads out a header that's already been queued but not sent to the client. Note
that the name is case insensitive. This can only be called before headers get
implicitly flushed.
Reads out a header that's already been queued but not sent to the client.
Note that the name is case insensitive.
Example:

Loading…
Cancel
Save