parsedate: allow time specified without seconds
authorDaniel Stenberg <daniel@haxx.se>
Mon, 27 Sep 2010 14:54:02 +0000 (16:54 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 27 Sep 2010 14:54:02 +0000 (16:54 +0200)
commit4d58f97f604bfef5b2cb7538f9bbc925c141622f
tree727e59deebfbb18e848e1856b68ef293e3e2ad38
parent33c3bb057b0814f4738bf055f7a153731a9f2352
parsedate: allow time specified without seconds

The date format in RFC822 allows that the seconds part of HH:MM:SS is
left out, but this function didn't allow it. This change also includes a
modified test case that makes sure that this now works.

Reported by: Matt Ford
Bug: http://curl.haxx.se/bug/view.cgi?id=3076529
lib/parsedate.c
tests/data/test517
tests/libtest/lib517.c