Skip to content
Myr

Instantiate the CID directly.

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

No need to do this the slow way now. Thanks to Colin (@cdunklau) for the idea.

authored by Cory Benfield · committed by Cory Benfield · parent ec2859c · Browse files · 1 file+1 added−2 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−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:requests/models.py+1 added-2 removed
344 unmodified lines
345 def prepare_headers(self, headers):346 """Prepares the given HTTP headers."""347348 if headers:349 headers = dict((to_native_string(name), value) for name, value in headers.items())350 self.headers = CaseInsensitiveDict(headers)349 self.headers = CaseInsensitiveDict((to_native_string(name), value) for name, value in headers.items())350 else:351 self.headers = CaseInsensitiveDict()352353 def prepare_body(self, data, files):
352 unmodified lines