2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 06:39:11 +00:00

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
This commit is contained in:
rudolfkoenig 2021-12-08 09:39:27 +00:00
parent 61cf117a48
commit cf5e5d2135

View File

@ -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", "");