<div dir="ltr">modules/access/http.c | 4 +++-<br> 1 file changed, 3 insertions(+), 1 deletion(-)<br><br>diff --git a/modules/access/http.c b/modules/access/http.c<br>index XXXXXXX..XXXXXXX 100644<br>--- a/modules/access/http.c<br>+++ b/modules/access/http.c<br>@@ -322,8 +322,11 @@ connect:<br>-    if( ( p_sys->i_code == 301 || p_sys->i_code == 302 ||<br>-          p_sys->i_code == 303 || p_sys->i_code == 307 ) &&<br>+    if( ( p_sys->i_code == 301 || p_sys->i_code == 302 ||<br>+          p_sys->i_code == 303 || p_sys->i_code == 307 ||<br>+          p_sys->i_code == 308 ) &&<br>         p_sys->psz_location != NULL )<br>     {<br>+        msg_Dbg( p_access, "redirecting to %s (HTTP %d)",<br>+                 p_sys->psz_location, p_sys->i_code );<br>         p_access->psz_url = p_sys->psz_location;<br>         p_sys->psz_location = NULL;<br>         ret = VLC_ACCESS_REDIRECT;<div><br>2.<br>access/http: log redirect destination and handle HTTP 308<br><br>Previously, the HTTP access module would return VLC_ACCESS_REDIRECT<br>with no log messages for redirects (301, 302, 303, 307). If a<br>developer tried to debug a faulty redirection chain, they had to rely<br>on trial-and-error because they had no way to know where VLC was<br>being redirected.<br><br>A msg_Dbg statement is added to provide a clue about the redirect<br>destination and the associated HTTP status code.<br><br>Also, there is no HTTP 308 check here; it has the same semantics as<br>301 but preserves the request method. It is covered by RFC 7538 and</div></div>