mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2025-12-23 22:37:53 -05:00
headers must be an array ref aparently.
This commit is contained in:
@@ -26,7 +26,6 @@ sub open {
|
||||
my $self = shift;
|
||||
$self->loadMonitor();
|
||||
|
||||
|
||||
$self->{ua} = LWP::UserAgent->new;
|
||||
$self->{ua}->agent('ZoneMinder Control Agent/'.ZoneMinder::Base::ZM_VERSION);
|
||||
$self->{state} = 'closed';
|
||||
@@ -84,16 +83,19 @@ sub sendCmdPost {
|
||||
|
||||
my $res = $self->post(
|
||||
$url,
|
||||
Referer=>$$self{BaseURL},
|
||||
Content=>$form
|
||||
$form,
|
||||
[
|
||||
Referer=>$$self{BaseURL}.'/eng/admin/tools_default.cgi',
|
||||
]
|
||||
#Content=>$form
|
||||
);
|
||||
|
||||
Debug($res->content);
|
||||
if (!$res->is_success) {
|
||||
return undef;
|
||||
}
|
||||
Debug($res->content);
|
||||
|
||||
return !undef;
|
||||
return 1;
|
||||
} # end sub sendCmdPost
|
||||
|
||||
sub move {
|
||||
|
||||
Reference in New Issue
Block a user