Skip to content

Commit

Permalink
fixed a silly encoding error on legacy python
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfk committed Sep 6, 2016
1 parent 947f1cf commit c6bd062
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
All enhancements and patches to statuspage will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## 0.8.1 [2016-09-6]
- Fixed a silly encoding error on legacy python

## 0.8.0 [2016-09-2]
- Added client side translation.
- Added german translation.
Expand Down
2 changes: 1 addition & 1 deletion statuspage/statuspage.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ def sha1(c):
if isinstance(c, str):
c = bytes(c, "utf-8")
else:
c = c.encode()
c = c.encode("utf-8")
return hashlib.sha1(c)
return sha1(c1).hexdigest() == sha1(c2).hexdigest()

Expand Down

0 comments on commit c6bd062

Please sign in to comment.