Skip to content

Commit

Permalink
Fixes error "'compute_content_md5' is not defined" for setversioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandapip1 authored Oct 20, 2023
1 parent 7ebafbe commit db052e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S3/S3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1088,7 +1088,7 @@ def set_versioning(self, uri, enabled):
body += '<Status>%s</Status>' % status
body += '</VersioningConfiguration>'
debug(u"set_versioning(%s)" % body)
headers['content-md5'] = compute_content_md5(body)
headers['content-md5'] = generate_content_md5(body)
request = self.create_request("BUCKET_CREATE", uri = uri,
headers = headers, body = body,
uri_params = {'versioning': None})
Expand Down

0 comments on commit db052e9

Please sign in to comment.