Skip to content

Commit 3982bb6

Browse files
committed
fix: added note for upgrade proxyRes error handling
1 parent a4070be commit 3982bb6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ function proxy (req, resOrSocket, options, onRes, onError) {
238238
.join('\r\n') + '\r\n\r\n'
239239
)
240240

241+
// XXX Do we need to handle `proxyRes.on('error', ...)`?
242+
241243
proxySocket
242244
.on('error', callback)
243245
.pipe(resOrSocket)

0 commit comments

Comments
 (0)