mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-28 20:05:10 +00:00
Merge branch 'dev' of https://github.com/unshackle-dl/unshackle into dev
This commit is contained in:
@@ -584,6 +584,10 @@ class RnetSession:
|
||||
if rnet_method is None:
|
||||
raise ValueError(f"Unsupported HTTP method: {method}")
|
||||
|
||||
# Convert headers to standard dict once to resolve PyO3 CaseInsensitiveDict rejection.
|
||||
if kwargs.get("headers") is not None:
|
||||
kwargs["headers"] = dict(kwargs["headers"])
|
||||
|
||||
# Skip retry for non-allowed methods
|
||||
if method_upper not in self.allowed_methods:
|
||||
raw_resp = client.request(rnet_method, url, **kwargs)
|
||||
|
||||
Reference in New Issue
Block a user