Skip to content

Commit 3e67d7c

Browse files
committed
improve inline comments
1 parent 665302c commit 3e67d7c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/default-hooks.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ module.exports = {
2323

2424
if (req.headers.connection === 'close' && chunked) {
2525
try {
26-
// remove transfer-encoding header
26+
// remove transfer-encoding header
2727
const transferEncoding = stream.headers[TRANSFER_ENCODING_HEADER_NAME].replace(/(,( )?)?chunked/, '')
2828
if (transferEncoding) {
29+
// header format includes many encodings, example: gzip, chunked
2930
res.setHeader(TRANSFER_ENCODING_HEADER_NAME, transferEncoding)
3031
} else {
3132
res.removeHeader(TRANSFER_ENCODING_HEADER_NAME)

0 commit comments

Comments
 (0)