Skip to content

Commit 3e993a5

Browse files
committed
added support for RFC 1123 date format
1 parent bbb01cd commit 3e993a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/saml2/httpbase.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def _since_epoch(cdate):
6767
if len(cdate) < 5:
6868
return utc_now()
6969

70-
cdate = cdate[5:]
70+
cdate = cdate[5:] # assume short weekday, i.e. do not support obsolete RFC 1036 date format
7171
try:
7272
t = time.strptime(cdate, "%d-%b-%Y %H:%M:%S %Z") # e.g. 18-Apr-2014 12:30:51 GMT
7373
except ValueError:

0 commit comments

Comments
 (0)