GNU bug report logs -
#14128
web/http.scm: bad-header date check (UTC?)
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi,
I was doing a test using gnutls and connecting to twitter api
services. Example attached.
I successfully passed the TLS/SSL part, but then I got this HTTP bad
header issue. I am running Guile 2.0.5 from Debian/unstable but
current stable-2.0 branch also suffers from the safe problem (I
think).
=============
184: 1 [read-header #<input-output: gnutls-session-port 2e94c30>]
754: 0 [parse-asctime-date "Wed, 03 Apr 2013 07:29:49 UTC"]
web/http.scm:754:6: In procedure parse-asctime-date:
web/http.scm:754:6: Throw to key `bad-header' with args `(date "Wed,
03 Apr 2013 07:29:49 UTC")'.
=============
Basically, the problem is that web/http.scm only accepts a GMT suffix
and the twitter server sends UTC. I think the RFC 822 standard accepts
UT instead of UTC, so it would be wrong as well.
Really, not sure what's the right way to fix this considering that
even the twitter server does not send a correct day (as far as I
understood the RFC).
Thanks,
Aleix
[twitter-user-timeline.scm (application/octet-stream, attachment)]
This bug report was last modified 11 years and 188 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.