From 787cf6e11aeb639222fe0d418f84ac5e4954873d Mon Sep 17 00:00:00 2001 From: ruinivist <179396038+ruinivist@users.noreply.github.com> Date: Sun, 31 May 2026 01:11:48 +0000 Subject: [PATCH] fix: disable HTTP/2 and HTTP/3 multiplexing in pling upload script The Pling/OpenDesktop file upload servers (`files07.pling.com`) do not properly handle HTTP/2 multiplexed file uploads from newer HTTP clients like `niquests`, causing `ConnectionError` and `500` status codes on push. Disabling HTTP/2 and HTTP/3 explicitly avoids these connection drops. --- scripts/pling_upload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pling_upload.py b/scripts/pling_upload.py index cbb842e..2f42d36 100755 --- a/scripts/pling_upload.py +++ b/scripts/pling_upload.py @@ -512,7 +512,7 @@ def resolve_runtime_config(args: argparse.Namespace) -> RuntimeConfig: def create_session(base_url: str) -> SessionLike: - session = cast(SessionLike, cast(object, niquests.Session())) + session = cast(SessionLike, cast(object, niquests.Session(disable_http2=True, disable_http3=True))) session.headers.update( { "User-Agent": (