Skip to content

Commit b90cc03

Browse files
author
Will Toozs
committed
CLDSRV-546: debugged prepareStream
1 parent f037e87 commit b90cc03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/api/apiUtils/object/prepareStream.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const V4Transform = require('../../../auth/streamingV4/V4Transform');
1313
* the type of request requires them
1414
*/
1515
function prepareStream(stream, streamingV4Params, log, errCb) {
16-
if (stream.headers['x-amz-content-sha256'] ===
16+
if (stream && stream.headers && stream.headers['x-amz-content-sha256'] ===
1717
'STREAMING-AWS4-HMAC-SHA256-PAYLOAD') {
1818
if (typeof streamingV4Params !== 'object') {
1919
// this might happen if the user provided a valid V2

0 commit comments

Comments
 (0)