We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f037e87 commit b90cc03Copy full SHA for b90cc03
lib/api/apiUtils/object/prepareStream.js
@@ -13,7 +13,7 @@ const V4Transform = require('../../../auth/streamingV4/V4Transform');
13
* the type of request requires them
14
*/
15
function prepareStream(stream, streamingV4Params, log, errCb) {
16
- if (stream.headers['x-amz-content-sha256'] ===
+ if (stream && stream.headers && stream.headers['x-amz-content-sha256'] ===
17
'STREAMING-AWS4-HMAC-SHA256-PAYLOAD') {
18
if (typeof streamingV4Params !== 'object') {
19
// this might happen if the user provided a valid V2
0 commit comments