Convert max_age to int b/c timedelta.total_seconds() is a float
This commit is contained in:
parent
3dd5612732
commit
7f7295e3b0
@ -31,7 +31,7 @@ def crossdomain(origin, methods=None, headers=None,
|
||||
if not isinstance(origin, list):
|
||||
origin = [origin]
|
||||
if isinstance(max_age, timedelta):
|
||||
max_age = max_age.total_seconds()
|
||||
max_age = int(max_age.total_seconds())
|
||||
|
||||
def get_methods():
|
||||
if methods is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user