Skip to content
Myr

headers.update is not the same that add headers one by one with add_header

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

authored by moliware · committed by moliware · parent 49e5df1 · Browse files · 1 file+2 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+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/models.py+2 added-1 removed
298 unmodified lines
299 else:300 req = _Request(url, data=self._enc_data, method=self.method)301302 if self.headers:303 req.headers.update(self.headers)303 for k,v in self.headers.iteritems():304 req.add_header(k, v)305306 if not self.sent or anyway:307308 try:
256 unmodified lines