Skip to content
Myr

add 'max_redirects' to Session's __attrs__ to ensure proper serialization of Session

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by makto · committed by makto · parent ba25184 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/sessions.py+1 added-1 removed
180 unmodified lines
181182 __attrs__ = [183 'headers', 'cookies', 'auth', 'timeout', 'proxies', 'hooks',184 'params', 'verify', 'cert', 'prefetch', 'adapters', 'stream',185 'trust_env']185 'trust_env', 'max_redirects']186187 def __init__(self):188189 #: A case-insensitive dictionary of headers to be sent on each
287 unmodified lines