Skip to content

Commit

Permalink
Fix normalise() to update the length of the new response
Browse files Browse the repository at this point in the history
  • Loading branch information
tweksteen committed Oct 29, 2012
1 parent 041e217 commit 3886b78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions abrupt/http.py
Expand Up @@ -436,6 +436,7 @@ def normalise(self):
res_new.raw_content = res_new.content
res_new.remove_header("Transfer-Encoding")
res_new.remove_header("Content-Encoding")
res_new._update_content_length()
return res_new

def remove_header(self, name):
Expand Down

0 comments on commit 3886b78

Please sign in to comment.