projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60088e5
)
Fix HTTP error message
author
Jamie Cameron
<jcameron@webmin.com>
Fri, 6 Mar 2009 20:35:53 +0000
(20:35 +0000)
committer
Jamie Cameron
<jcameron@webmin.com>
Fri, 6 Mar 2009 20:35:53 +0000
(20:35 +0000)
status/http-monitor.pl
patch
|
blob
|
history
diff --git
a/status/http-monitor.pl
b/status/http-monitor.pl
index
41c0174
..
6f85988
100644
(file)
--- a/
status/http-monitor.pl
+++ b/
status/http-monitor.pl
@@
-16,8
+16,9
@@
eval {
local $con = &make_http_connection($_[0]->{'host'}, $_[0]->{'port'},
$_[0]->{'ssl'}, $method, $_[0]->{'page'});
if (!ref($con)) {
- return { 'up' => 0,
- 'desc' => $con };
+ $up = 0;
+ $desc = $con;
+ return;
}
&write_http_connection($con, "Host: $_[0]->{'host'}\r\n");
&write_http_connection($con, "User-agent: Webmin\r\n");