d7b8e04b50
(#2267) fixes issues when data send with 'Content-Encoding: gzip' or other encodings is larger than the actual file