diff --git a/resources/lib/services/nfsession/session/base.py b/resources/lib/services/nfsession/session/base.py index 907c0c81a..d1c0e023c 100644 --- a/resources/lib/services/nfsession/session/base.py +++ b/resources/lib/services/nfsession/session/base.py @@ -44,7 +44,7 @@ def _init_session(self): import httpx # (http1=False, http2=True) means that the client know that server support HTTP/2 and avoid to do negotiations, # prior knowledge: https://python-hyper.org/projects/hyper-h2/en/v2.3.1/negotiating-http2.html#prior-knowledge - self.session = httpx.Client(http1=False, http2=True) + self.session = httpx.Client(http1=False, http2=True, follow_redirects=True) self.session.max_redirects = 10 # Too much redirects should means some problem self.session.headers.update({ 'User-Agent': common.get_user_agent(enable_android_mediaflag_fix=True),