mirror of
https://github.com/microsoft/playwright.git
synced 2024-11-28 17:44:33 +03:00
test: fix Windows Socks tests (#31654)
This commit is contained in:
parent
01e2c8ab06
commit
97e2aa07a5
@ -108,6 +108,8 @@ export class MockSocksServer {
|
||||
host: '127.0.0.1',
|
||||
port: 0,
|
||||
});
|
||||
});
|
||||
this._socksProxy.addListener(SocksProxy.Events.SocksData, async (payload: SocksSocketRequestedPayload) => {
|
||||
const body = '<html><title>Served by the SOCKS proxy</title></html>';
|
||||
const data = Buffer.from([
|
||||
'HTTP/1.1 200 OK',
|
||||
|
Loading…
Reference in New Issue
Block a user