Skip to content

Commit

Permalink
Merge pull request lektor#658 from mpianka/master
Browse files Browse the repository at this point in the history
lektor#628 base64 of sha384 wasn't encoded to string
  • Loading branch information
nixjdm committed Jun 18, 2019
2 parents 7691e1e + b265961 commit 1b470d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lektor/filecontents.py
Expand Up @@ -83,7 +83,7 @@ def _ensure_hashes(self):
sha384.update(chunk)
self._md5 = md5.hexdigest()
self._sha1 = sha1.hexdigest()
self._integrity = 'sha384-' + base64.b64encode(sha384.digest())
self._integrity = 'sha384-' + base64.b64encode(sha384.digest()).decode('ascii')

def __repr__(self):
return '<FileContents %r md5=%r>' % (
Expand Down

0 comments on commit 1b470d0

Please sign in to comment.