Skip to content

Commit d888e39

Browse files
nsrCodesfilfreire
authored andcommitted
chore: optional chaining safety check for when request.PostData can be undefined
1 parent 0dd07d2 commit d888e39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/httpsnippet.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export class HTTPSnippet {
164164
request.allHeaders.cookie = cookies.join('; ');
165165
}
166166

167-
switch (request.postData.mimeType) {
167+
switch (request?.postData.mimeType) {
168168
case 'multipart/mixed':
169169
case 'multipart/related':
170170
case 'multipart/form-data':

0 commit comments

Comments
 (0)