in reply to LWP::Simple, a bug in head() function?
Taking a quick look in Date.pm, near the top of the str2time function is the lineHTTP::Date::str2time($response->header('Expires'))
Changing this line to instead readreturn unless defined $str;
seems to produce the desired result, but I don't know enough offhand about this module to know whether that would affect any other desired behavior.return undef unless defined $str;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: LWP::Simple
by plaid (Chaplain) on Mar 14, 2000 at 23:52 UTC | |
by capa (Initiate) on Mar 15, 2000 at 01:02 UTC | |
by LucidMatrix (Initiate) on Feb 13, 2001 at 13:20 UTC | |
by plaid (Chaplain) on Mar 15, 2000 at 06:02 UTC |