Skip to content

Commit

Permalink
Merge pull request psf#613 from surajbarkale/patch-1
Browse files Browse the repository at this point in the history
Remove sharing of base_headers config between sessions.
  • Loading branch information
Kenneth Reitz committed May 15, 2012
2 parents 763393f + 973e9cb commit 2f50cb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion requests/sessions.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"""

from copy import deepcopy
from .compat import cookielib
from .cookies import cookiejar_from_dict, remove_cookie_by_name
from .defaults import defaults
Expand Down Expand Up @@ -81,7 +82,7 @@ def __init__(self,
self.cert = cert

for (k, v) in list(defaults.items()):
self.config.setdefault(k, v)
self.config.setdefault(k, deepcopy(v))

self.init_poolmanager()

Expand Down

0 comments on commit 2f50cb9

Please sign in to comment.