headers must be an array ref aparently.

This commit is contained in:
Isaac Connor
2025-11-25 09:01:32 -05:00
parent 2e3faf4a01
commit 2cfed3d8f1

View File

@@ -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 {