Menu

#29 Possible bug in http request headers

open
nobody
boa (32)
5
2004-12-02
2004-12-02
Anonymous
No

I think I may have stumbled upon an unhandled error, but I
don't have enough knowledge in C/C++ to confirm this.

When doing this:
wget -S --spider --header="If-Modified-Since: 26 Nov 2004"
http://localhost/

I get this in the error log:
[02/Dec/2004:01:45:08 +0000] Error in util.c, line 231:
Unable to sscanf " Nov 2004"

On one hand, Boa didn't crash, but on the other hand, the
description of the error includes the .c file and the line
number, which is rather unusual. If I send a valid
If-Modified-Since header (including the time and timezone),
I get the expected result and no error in the log.

It might not be a problem, but I thought it might be worth
taking a look.

I'm running Boa 0.94.13 under Gentoo Linux.

- BlackPhoenix at cablevision.qc.ca

Discussion


Log in to post a comment.