From 74f6afbfc05db5b7c4086420587026894e919ab2 Mon Sep 17 00:00:00 2001 From: ststrobel Date: Wed, 19 Nov 2014 19:28:15 +0000 Subject: [PATCH] HTTPMOD.pm: fixed two bugs git-svn-id: https://svn.fhem.de/fhem/trunk@7021 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/98_HTTPMOD.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fhem/FHEM/98_HTTPMOD.pm b/fhem/FHEM/98_HTTPMOD.pm index e765ddad9..e8d5af116 100755 --- a/fhem/FHEM/98_HTTPMOD.pm +++ b/fhem/FHEM/98_HTTPMOD.pm @@ -29,6 +29,7 @@ # 2014-3-13 added noShutdown and disable attributes # 2014-4-8 fixed noShutdown check # 2014-4-9 added Attribute timeout as suggested by Frank +# 2014-11-18 fixed timeout attribute and redirects # package main; @@ -259,7 +260,8 @@ sub HTTPMOD_GetUpdate($) } else { delete $hash->{noshutdown}; }; - + $hash->{timeout} = AttrVal($name, "timeout", 2); + $hash->{redirects} = 0; HttpUtils_NonblockingGet($hash); }