mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(client-certificates): error response body Content-Length calculation (#31897)
This commit is contained in:
parent
acf5ea0904
commit
cc313f3290
@ -201,7 +201,7 @@ class SocksProxyConnection {
|
|||||||
'HTTP/1.1 503 Internal Server Error',
|
'HTTP/1.1 503 Internal Server Error',
|
||||||
'Content-Type: text/html; charset=utf-8',
|
'Content-Type: text/html; charset=utf-8',
|
||||||
'Content-Length: ' + Buffer.byteLength(responseBody),
|
'Content-Length: ' + Buffer.byteLength(responseBody),
|
||||||
'\r\n',
|
'',
|
||||||
responseBody,
|
responseBody,
|
||||||
].join('\r\n'));
|
].join('\r\n'));
|
||||||
closeBothSockets();
|
closeBothSockets();
|
||||||
|
@ -274,7 +274,7 @@ test.describe('browser', () => {
|
|||||||
}],
|
}],
|
||||||
});
|
});
|
||||||
await page.goto(browserName === 'webkit' && platform === 'darwin' ? httpsServer.EMPTY_PAGE.replace('localhost', 'local.playwright') : httpsServer.EMPTY_PAGE);
|
await page.goto(browserName === 'webkit' && platform === 'darwin' ? httpsServer.EMPTY_PAGE.replace('localhost', 'local.playwright') : httpsServer.EMPTY_PAGE);
|
||||||
await expect(page.getByText('Playwright client-certificate error')).toBeVisible();
|
await expect(page.getByText('Playwright client-certificate error: self-signed certificate')).toBeVisible();
|
||||||
await page.close();
|
await page.close();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user