Skip to content

Commit b350268

Browse files
committed
docs: updates notes
1 parent 0d5a178 commit b350268

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,9 @@ function proxy (req, resOrSocket, options, onRes, onError) {
181181
callback(err)
182182
}
183183
})
184-
// NOTE http.ClientRequest emits "socket hang up" error when aborted, i.e.
185-
// there is no need to listen for proxyReq.on('aborted', ...).
184+
// NOTE http.ClientRequest emits "socket hang up" error when aborted
185+
// before having received a response, i.e. there is no need to listen for
186+
// proxyReq.on('aborted', ...).
186187
.on('timeout', () => callback(createError('gateway timeout', null, 504)))
187188
.on('response', proxyRes => {
188189
try {

0 commit comments

Comments
 (0)