Don't split the validation challenge #2

Merged
hgo merged 1 commits from 1-validation-error into master 2020-06-14 11:16:23 +02:00
1 changed files with 2 additions and 2 deletions

View File

@ -89,11 +89,11 @@ def perform_http01_challenge(
:rtype: str :rtype: str
""" """
response, validation = challenge.response_and_validation(client_acme.net.key) response, validation = challenge.response_and_validation(client_acme.net.key)
validation_filename, validation_content = validation.split('.') validation_filename, _ = validation.split('.')
challenge_path = os.path.join(challenge_dir, validation_filename) challenge_path = os.path.join(challenge_dir, validation_filename)
with open(challenge_path, 'w') as f_out: with open(challenge_path, 'w') as f_out:
f_out.write(validation_content) f_out.write(validation)
client_acme.answer_challenge(challenge, response) client_acme.answer_challenge(challenge, response)