Menu

#31 ssl checks return red for 404

network-module
open
nobody
None
5
2007-07-21
2007-07-21
Anonymous
No

The logic for checking 400 level errors is there, but LWP returns "error" for 404 ...

In check_https the problem is here...

if ($result->is_success) {
my $code = $result->code;

I'd suggest changing that to

if (defined($result->code)) {
my $code = $result->code;

that'll let the 400 level checking code actually see the error. maybe that should be check for defined($result) and defined($result->code)?

-Tom (tbrown on a mail server called baremetal.com)

Discussion


Log in to post a comment.