Skip to content

doc: remove warning from `response.writeHead`

Rodrigo Muino Tomonari requested to merge github/fork/cecchi/patch-1 into master

The example referenced as being potentially unsafe specifies Content-Length correctly.

The current documentation warns that the example preceding this note only works because the characters in "hello world" are all single-byte characters. The example however already uses Buffer.byteLength, which is the recommended "fix".

Checklist

Merge request reports

Loading