Skip to content

Commit 1b27304

Browse files
committed
refactor: use res over kRes
1 parent 948e056 commit 1b27304

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,14 @@ function onProxyUpgrade (proxyRes, proxySocket, proxyHead) {
287287

288288
head += '\r\n\r\n'
289289

290-
this[kRes].write(head)
290+
res.write(head)
291291

292292
proxyRes
293293
.on('error', onFinish)
294294

295295
proxySocket
296296
.on('error', onFinish)
297-
.pipe(this[kRes])
297+
.pipe(res)
298298
.pipe(proxySocket)
299299
}
300300

0 commit comments

Comments
 (0)