Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
tmacro committed Jul 13, 2023
1 parent 1ca203c commit 9fb629b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/routes/routeBackbeat.js
Original file line number Diff line number Diff line change
Expand Up @@ -473,13 +473,15 @@ function putMetadata(request, response, bucketInfo, objMd, log, callback) {
});
}

const passthroughVersion = req.query.passthroughVersion === 'true';
const passthroughVersion = request.query.passthroughVersion === 'true';
let versionId = decodeVersionId(request.query);
let versioning = bucketInfo.isVersioningEnabled();
let isNull = false;

// if passthroughVersion is true

if (versionId === 'null') {
isNull = true;
isNull = !passthroughVersion;
// Retrieve the null version id from the object metadata.
versionId = objMd && objMd.versionId;
if (!versionId && !passthroughVersion) {
Expand Down

0 comments on commit 9fb629b

Please sign in to comment.