Skip to content

Commit 1d44084

Browse files
authored
fix(network): handle case where requestContentType is undefined (#58)
1 parent 15e07b5 commit 1d44084

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/network/NetworkRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ export class NetworkRequest {
673673
return this.parseParameters(formUrlencoded);
674674
}
675675

676-
const multipartDetails: RegExpMatchArray = this.requestContentType.match(
676+
const multipartDetails: RegExpMatchArray = this.requestContentType?.match(
677677
/^multipart\/form-data\s*;\s*boundary\s*=\s*(\S+)\s*$/
678678
);
679679

0 commit comments

Comments
 (0)