Changed list to frozenset

This commit is contained in:
Kyle Blöm 2017-01-30 09:49:04 -08:00
parent c677dc22a8
commit 68b9700abf

View File

@ -93,7 +93,7 @@ class Sanic:
return self.route(uri, methods=frozenset({"PATCH"}), host=host) return self.route(uri, methods=frozenset({"PATCH"}), host=host)
def delete(self, uri, host=None): 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): def add_route(self, handler, uri, methods=frozenset({'GET'}), host=None):
""" """