From cf5e5d213518f60d77f8a2b69a6996dc65210fa5 Mon Sep 17 00:00:00 2001 From: rudolfkoenig <> Date: Wed, 8 Dec 2021 09:39:27 +0000 Subject: [PATCH] HttpUtils.pm: add 308 to the list of redirects (Forum #45176) git-svn-id: https://svn.fhem.de/fhem/trunk@25327 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/HttpUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fhem/FHEM/HttpUtils.pm b/fhem/FHEM/HttpUtils.pm index 5da643dda..e05da7269 100644 --- a/fhem/FHEM/HttpUtils.pm +++ b/fhem/FHEM/HttpUtils.pm @@ -886,7 +886,7 @@ HttpUtils_ParseAnswer($) } - if(($code==301 || $code==302 || $code==303) + if(($code==301 || $code==302 || $code==303 || $code==308) && !$hash->{ignoreredirects}) { # redirect if(++$hash->{redirects} > 5) { return ("$hash->{displayurl}: Too many redirects", "");