diff --git a/www/modpythoncustom.py b/www/modpythoncustom.py index f5e0a14e9641a9791df42ed79a93e976150e16d6..1d6380ec5c923e33e24e4c8e05c6bb9117f1d3f2 100644 --- a/www/modpythoncustom.py +++ b/www/modpythoncustom.py @@ -1,3 +1,4 @@ +from builtins import str from mod_python import apache # 404 should do NOTHING so apache can handle it. This view is referenced @@ -83,10 +84,10 @@ class ModPythonHandler(BaseHandler): # Convert our custom HttpResponse object back into the mod_python req. req.content_type = response['Content-Type'] - for key, value in response.items(): + for key, value in list(response.items()): if key != 'content-type': req.headers_out[str(key)] = str(value) - for c in response.cookies.values(): + for c in list(response.cookies.values()): req.headers_out.add('Set-Cookie', c.output(header='')) req.status = response.status_code try: