Loading pyproject.toml +0 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ dependencies = [ "toon-format", "pydantic-settings>=2.13.1", "niquests>=3.18.4", "aioquic>=1.3.0", ] [project.urls] Loading src/tdoc_crawler/http_client/session.py +2 −1 Original line number Diff line number Diff line Loading @@ -248,7 +248,8 @@ def create_cached_session( Configured requests.Session with caching enabled (unless disabled) """ # Create session, use requests with browser-like headers to avoid 403 Forbidden session = requests.Session() # Disable HTTP/3 to avoid MustDowngradeError with servers advertising Alt-Svc: h3 session = requests.Session(disable_http3=True) session.headers.update(BROWSER_HEADERS) # Use http_config for SSL if no explicit verify provided Loading Loading
pyproject.toml +0 −1 Original line number Diff line number Diff line Loading @@ -41,7 +41,6 @@ dependencies = [ "toon-format", "pydantic-settings>=2.13.1", "niquests>=3.18.4", "aioquic>=1.3.0", ] [project.urls] Loading
src/tdoc_crawler/http_client/session.py +2 −1 Original line number Diff line number Diff line Loading @@ -248,7 +248,8 @@ def create_cached_session( Configured requests.Session with caching enabled (unless disabled) """ # Create session, use requests with browser-like headers to avoid 403 Forbidden session = requests.Session() # Disable HTTP/3 to avoid MustDowngradeError with servers advertising Alt-Svc: h3 session = requests.Session(disable_http3=True) session.headers.update(BROWSER_HEADERS) # Use http_config for SSL if no explicit verify provided Loading