Skip to content

Commit 8e8c4df

Browse files
author
hvs
committed
Merge remote-tracking branch 'upstream/master'
2 parents a564bea + c30a9dc commit 8e8c4df

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
os: [ubuntu-latest, macos-latest, windows-latest]
18-
node-version: [6.x, 8.x, 10.x, 12.x]
18+
node-version: [6.x, 8.x, 10.x, 12.x, 14.x]
1919

2020
runs-on: ${{ matrix.os }}
2121

src/agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export default class HttpsProxyAgent extends Agent {
170170
// See: https://hackerone.com/reports/541502
171171
socket.destroy();
172172

173-
const fakeSocket = new net.Socket();
173+
const fakeSocket = new net.Socket({ writable: false });
174174
fakeSocket.readable = true;
175175

176176
// Need to wait for the "socket" event to re-play the "data" events.

0 commit comments

Comments
 (0)