Skip to content
Myr

Merge pull request #1012 from bodziec/master

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

Fixed small bug where user couldn't add custom headers

authored by Kenneth Reitz · committed by Kenneth Reitz · parents fee7a7a, 73ca21e · 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/models.py+1 added-1 removed
293 unmodified lines
294 def prepare_headers(self, headers):295 """Prepares the given HTTP headers."""296297 if headers:298 self.headers = CaseInsensitiveDict(self.headers)298 self.headers = CaseInsensitiveDict(headers)299 else:300 self.headers = CaseInsensitiveDict()301302 def prepare_body(self, data, files):
790 unmodified lines