We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3336d40 commit 85b452bCopy full SHA for 85b452b
adafruit_httpserver/server.py
@@ -115,7 +115,7 @@ def route_func(request):
115
if path.endswith("/") and append_slash:
116
raise ValueError("Cannot use append_slash=True when path ends with /")
117
118
- methods = methods if isinstance(methods, set) else set(methods)
+ methods = set(methods) if isinstance(methods, (set, list)) else set([methods])
119
120
def route_decorator(func: Callable) -> Callable:
121
self._routes.add(_Route(path, methods, append_slash), func)
0 commit comments