Skip to content

Commit

Permalink
hack to stop time_t overflow errors
Browse files Browse the repository at this point in the history
  • Loading branch information
plq committed Aug 21, 2015
1 parent 4cfdfe4 commit f4a26c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spyne/util/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def generate_cookie(k, v, max_age=None, domain=None, path=None,
assert time.time() < sys.maxint

expires = time.time() + max_age
expires = min(sys.maxint, expires)
expires = min(2<<30, expires) - 1 # FIXME
retval.append("Expires=%s" % strftime("%a, %d %b %Y %H:%M:%S GMT",
gmtime(expires)))
if domain is not None:
Expand Down

0 comments on commit f4a26c5

Please sign in to comment.