[freeside-commits] freeside/FS/FS/Cron check.pm,1.1,1.2
Ivan,,,
ivan at wavetail.420.am
Sat Mar 21 16:32:30 PDT 2009
Update of /home/cvs/cvsroot/freeside/FS/FS/Cron
In directory wavetail.420.am:/tmp/cvs-serv26518
Modified Files:
check.pm
Log Message:
403 forbidden is okay, at lest the server's up
Index: check.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Cron/check.pm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- check.pm 21 Mar 2009 22:14:37 -0000 1.1
+++ check.pm 21 Mar 2009 23:32:27 -0000 1.2
@@ -65,7 +65,7 @@
my $req = new HTTP::Request GET => 'https://localhost/';
my $res = $ua->request($req);
- return 1 if $res->is_success;
+ return 1 if $res->is_success || $res->status_line =~ /^403/;
$error_msg = $res->status_line;
return 0;
More information about the freeside-commits
mailing list