Special case for method, now used for the first time apparently.

This commit is contained in:
Samuel Clay 2020-11-10 12:58:20 -05:00
parent 2338555eb7
commit eb61ce0e82

View file

@ -67,6 +67,7 @@ class required_params(object):
# Check if parameter is correct type
for param, param_type in self.named_params.items():
if param == "method": continue
if getattr(request, self.method).get(param) is None:
print " Typed parameter not found: %s" % param
return self.disallowed(param)