From 45621907703c06abf9d2045deaa8e69257dcaec0 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 de0a565b..3f18a3d4 100644 --- a/sanic/sanic.py +++ b/sanic/sanic.py @@ -94,7 +94,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): """