From db9abbae05400009af341475bd52972b3a7f2b7b Mon Sep 17 00:00:00 2001 From: Simon Bomm Date: Wed, 3 Jun 2020 17:04:17 +0200 Subject: [PATCH] enh(mode)pvx-default-timeout Avoid Perl errors when using curl backend. --- apps/pvx/restapi/custom/api.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/pvx/restapi/custom/api.pm b/apps/pvx/restapi/custom/api.pm index f3db25d39..72d23b9c0 100644 --- a/apps/pvx/restapi/custom/api.pm +++ b/apps/pvx/restapi/custom/api.pm @@ -53,7 +53,7 @@ sub new { 'basic' => { name => 'basic' }, 'username:s' => { name => 'username' }, 'password:s' => { name => 'password' }, - 'timeout:s' => { name => 'timeout' }, + 'timeout:s' => { name => 'timeout', default => 10 }, 'timeframe:s' => { name => 'timeframe' }, 'timezone:s' => { name => 'timezone', default => 'UTC' } });