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]