From f3395d487c3c79b74d2d4915af21178a15d7f562 Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Wed, 10 Jan 2018 23:36:39 -0800 Subject: [PATCH] python3 compatibility --- certbot-nginx/certbot_nginx/challenges.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot-nginx/certbot_nginx/challenges.py b/certbot-nginx/certbot_nginx/challenges.py index 5a0c2ad04..aff1c57db 100644 --- a/certbot-nginx/certbot_nginx/challenges.py +++ b/certbot-nginx/certbot_nginx/challenges.py @@ -243,7 +243,7 @@ class NginxHttp01(NginxChallengePerformer): block.extend([['server_name', ' ', achall.domain], [['location', ' ', '=', ' ', validation_path], [['default_type', ' ', 'text/plain'], - ['return', ' ', '200', ' ', validation.encode()]]]]) + ['return', ' ', '200', ' ', validation]]]]) return [['server'], block]