Skip to content

Commit

Permalink
chore: optional chaining safety check for when request.PostData can b…
Browse files Browse the repository at this point in the history
…e undefined
  • Loading branch information
nsrCodes authored and filfreire committed Jul 12, 2024
1 parent 0dd07d2 commit d888e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/httpsnippet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export class HTTPSnippet {
request.allHeaders.cookie = cookies.join('; ');
}

switch (request.postData.mimeType) {
switch (request?.postData.mimeType) {
case 'multipart/mixed':
case 'multipart/related':
case 'multipart/form-data':
Expand Down

0 comments on commit d888e39

Please sign in to comment.