Skip to content

Commit 7287508

Browse files
committed
Fixed authentication by removing extraneous newline character from the hashed string.
1 parent 203b9d5 commit 7287508

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

varnish.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def quit(self):
110110

111111
def auth(self, secret, content):
112112
challenge = content[:32]
113-
response = sha256('%s\n%s\n%s\n' % (challenge, secret, challenge))
113+
response = sha256('%s\n%s%s\n' % (challenge, secret, challenge))
114114
response_str = 'auth %s' % response.hexdigest()
115115
self.fetch(response_str)
116116

0 commit comments

Comments
 (0)