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 8b5ac00 commit aadeb88Copy full SHA for aadeb88
hug/interface.py
@@ -676,10 +676,10 @@ class HTTP(Interface):
676
def __init__(self, route, function, catch_exceptions=True):
677
super().__init__(route, function)
678
self.catch_exceptions = catch_exceptions
679
- self.parse_body = "parse_body" in route
+ self.parse_body = route.get("parse_body", True)
680
self.set_status = route.get("status", False)
681
self.response_headers = tuple(route.get("response_headers", {}).items())
682
- self.private = "private" in route
+ self.private = route.get("private", False)
683
self.inputs = route.get("inputs", {})
684
685
if "on_invalid" in route:
0 commit comments