diff options
author | Ian Price <ianprice90@googlemail.com> | 2011-09-09 20:02:34 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2011-09-10 11:12:04 -0700 |
commit | cb7bcfca3520a147881e4b7f052b68b88a740bf1 (patch) | |
tree | 30c2aa5508ed2aa3d81dd6015432d314dfaf729b /test-suite/tests/web-http.test | |
parent | 86b4309b7166fe5ec4f55f0cc64501d07b0852f9 (diff) | |
download | guile-cb7bcfca3520a147881e4b7f052b68b88a740bf1.tar.gz |
RFC 822 allows single digit days of the month
* module/web/http.scm (parse-rfc-822-date): Add single digit day
conditional.
* test-suite/tests/web-http.test("general headers"): Add test.
Diffstat (limited to 'test-suite/tests/web-http.test')
-rw-r--r-- | test-suite/tests/web-http.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test-suite/tests/web-http.test b/test-suite/tests/web-http.test index c191c6eab..e4d6efb8f 100644 --- a/test-suite/tests/web-http.test +++ b/test-suite/tests/web-http.test @@ -89,6 +89,9 @@ (pass-if-parse date "Tue, 15 Nov 1994 08:12:31 GMT" (string->date "Tue, 15 Nov 1994 08:12:31 +0000" "~a, ~d ~b ~Y ~H:~M:~S ~z")) + (pass-if-parse date "Wed, 7 Sep 2011 11:25:00 GMT" + (string->date "Wed, 7 Sep 2011 11:25:00 +0000" + "~a,~e ~b ~Y ~H:~M:~S ~z")) (pass-if-parse-error date "Tue, 15 Nov 1994 08:12:31 EST" date) (pass-if-any-error date "Tue, 15 Qux 1994 08:12:31 EST") |