From 819e32d91f091b1f10aea28b12bd15437a251ba6 Mon Sep 17 00:00:00 2001 From: Massimiliano Cannata Date: Thu, 5 Nov 2020 10:24:20 +0100 Subject: [PATCH] Update core.tpl --- swagger_py_codegen/templates/tornado/core.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swagger_py_codegen/templates/tornado/core.tpl b/swagger_py_codegen/templates/tornado/core.tpl index f4e428e..487ad58 100644 --- a/swagger_py_codegen/templates/tornado/core.tpl +++ b/swagger_py_codegen/templates/tornado/core.tpl @@ -52,7 +52,7 @@ class RequestHandler(tornado.web.RequestHandler): def set_headers(self, items): if items is None: return - for k, v in items: + for k, v in items.items(): self.set_header(k, v) def write_error(self, status_code, **kwargs):