Skip to content

Commit

Permalink
Remove copy of body headers into request headers
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanLorenzo committed Mar 27, 2017
1 parent c455db1 commit 90782e6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions aiohttp/client_reqrep.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,12 +275,6 @@ def update_body_from_data(self, body, skip_auto_headers):
hdrs.CONTENT_TYPE not in skip_auto_headers):
self.headers[hdrs.CONTENT_TYPE] = body.content_type

# copy payload headers
if body.headers:
for (key, value) in body.headers.items():
if key not in self.headers:
self.headers[key] = value

def update_expect_continue(self, expect=False):
if expect:
self.headers[hdrs.EXPECT] = '100-continue'
Expand Down

0 comments on commit 90782e6

Please sign in to comment.