impl. of transfer encoding was duplicated
Merge pull request #184 from rgrinberg/remove_duplicate_code

impl. of transfer encoding was duplicated