fix(cgi-bin): try to use switches when failed to parse request body

main
Tsu-ba-me 4 years ago
parent ba93ae38d8
commit 0020103b77
  1. 1
      cgi-bin/set_power

@ -156,7 +156,6 @@ if (not $is_decode_json_success)
key => "error_0304",
variables => { request_body_string => $anvil->data->{cgi}{PUTDATA}{value}, json_decode_error => $_ }
});
$anvil->nice_exit({ exit_code => 1 });
}
my $anvil_uuid = exists $request_body->{anvil_uuid} ? $request_body->{anvil_uuid} : $anvil->data->{switches}{'anvil-uuid'};

Loading…
Cancel
Save