Skip to content

Commit

Permalink
fix: header handling on undefined headers
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-scherzinger committed Mar 5, 2024
1 parent 9477f62 commit 2d3b75f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/Resource.ts
Expand Up @@ -538,7 +538,7 @@ class Resource {
'If-Unmodified-Since': date.toUTCString(),
},
});
} else if (!safePut && request.requestOptions.headers['If-Unmodified-Since']) {
} else if (!safePut && request.requestOptions?.headers?.['If-Unmodified-Since']) {
delete request.requestOptions.headers['If-Unmodified-Since'];
}

Expand Down

0 comments on commit 2d3b75f

Please sign in to comment.