Skip to content
Myr

Fixed a bug where user couldn't add custom headers.

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

authored by Bartek Sarul · committed by Bartek Sarul · parent fee7a7a · 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