Skip to content

Commit bc33e4d

Browse files
authored
Fix log() function from erroring with signature check
1 parent abe2c10 commit bc33e4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

keyauth.py

+1
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,7 @@ def __do_request(self, post_data):
527527
)
528528

529529
key = self.secret if post_data["type"] == "init" else self.enckey
530+
if post_data["type"] == "log": return response.text
530531

531532
client_computed = hmac.new(key.encode('utf-8'), response.text.encode('utf-8'), hashlib.sha256).hexdigest()
532533

0 commit comments

Comments
 (0)