From 23efba515c9ad0ed7ffdb82d9dbe46f318d1fb13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kyle=20Bl=C3=B6m?= Date: Mon, 30 Jan 2017 09:49:04 -0800 Subject: [PATCH] Changed list to frozenset --- sanic/sanic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sanic/sanic.py b/sanic/sanic.py index a66580ed..4fd4ee2d 100644 --- a/sanic/sanic.py +++ b/sanic/sanic.py @@ -93,7 +93,7 @@ class Sanic: return self.route(uri, methods=frozenset({"PATCH"}), host=host) def delete(self, uri, host=None): - return self.route(uri, methods=["DELETE"], host=host) + return self.route(uri, methods=frozenset({"DELETE"}), host=host) def add_route(self, handler, uri, methods=frozenset({'GET'}), host=None): """