Skip to content

Commit

Permalink
fix: clear pending TLS socket handle (#10667)
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Aug 1, 2023
1 parent 4f60a56 commit 87bd791
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/browsers/src/httpUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ export function headHttpRequest(url: URL): Promise<boolean> {
url,
'HEAD',
response => {
// consume response data free node process
response.resume();
resolve(response.statusCode === 200);
},
false
Expand Down

0 comments on commit 87bd791

Please sign in to comment.