Skip to content

Commit

Permalink
Use the correct unit (seconds) when max_age < 1 day
Browse files Browse the repository at this point in the history
  • Loading branch information
klausenbusk committed Mar 18, 2021
1 parent e1effc4 commit be8fc2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ def checkPolicyFile(result, domain):
except ValueError:
return result.error('invalid-max-age', info['max_age'])
if max_age < 86400: # 1 day
return result.error('short-max-age', max_age/86400)
return result.error('short-max-age', max_age)
if max_age < 2419200 and info.get('mode', 'testing') != 'testing': # 28 days
result.warn('short-max-age', max_age/86400)
if max_age > 31557600:
Expand Down

0 comments on commit be8fc2b

Please sign in to comment.