Skip to content

Commit

Permalink
fix(network): handle case where requestContentType is undefined (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
MillerJames authored Jun 11, 2021
1 parent 15e07b5 commit 1d44084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/network/NetworkRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ export class NetworkRequest {
return this.parseParameters(formUrlencoded);
}

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

Expand Down

0 comments on commit 1d44084

Please sign in to comment.