Update packages/playwright-core/src/client/network.ts

Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Max Schmitt 2024-03-12 17:08:23 +01:00 committed by GitHub
parent ad955154b8
commit 983b45f9ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -141,7 +141,7 @@ export class Request extends ChannelOwner<channels.RequestChannel> implements ap
return null;
const contentType = this.headers()['content-type'];
if (contentType.startsWith('application/x-www-form-urlencoded')) {
if (contentType.includes('application/x-www-form-urlencoded')) {
const entries: Record<string, string> = {};
const parsed = new URLSearchParams(postData);
for (const [k, v] of parsed.entries())