Change the line 326 :
[] = 'Content-Encoding: gzip';
with
[] = array('key' => 'Content-Encoding', 'value' => 'gzip');