fix simple_error_message encoding

Fixes: https://pagure.io/koji/issue/2341
This commit is contained in:
Tomas Kopecek 2020-06-26 13:45:49 +02:00
parent 53ff792a53
commit 60048297dc

View file

@ -288,6 +288,7 @@ class Dispatcher(object):
if err:
result.append("<p>%s</p>\n" % err)
result.append("</body></html>\n")
result = [x.encode('utf-8') for x in result]
length = sum([len(x) for x in result])
headers = [
('Allow', 'GET, POST, HEAD'),