mirror of
https://github.com/microsoft/playwright.git
synced 2024-11-30 23:45:33 +03:00
cherry-pick(#31897): fix(client-certificates): error response body Content-Length calculation
This commit is contained in:
parent
57c7d9e9bb
commit
185a2867c6
@ -201,7 +201,7 @@ class SocksProxyConnection {
|
||||
'HTTP/1.1 503 Internal Server Error',
|
||||
'Content-Type: text/html; charset=utf-8',
|
||||
'Content-Length: ' + Buffer.byteLength(responseBody),
|
||||
'\r\n',
|
||||
'',
|
||||
responseBody,
|
||||
].join('\r\n'));
|
||||
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 expect(page.getByText('Playwright client-certificate error')).toBeVisible();
|
||||
await expect(page.getByText('Playwright client-certificate error: self-signed certificate')).toBeVisible();
|
||||
await page.close();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user