avoid corrupt attachments, #13209 and #13877
[freeside.git] / rt / share / html / Ticket / Attachment / dhandler
index 5297082..9d4d532 100755 (executable)
@@ -85,6 +85,7 @@
      #     $content_type = 'application/octet-stream';
      # }
 
+     $r->subprocess_env('no-gzip' => 1); # disable mod_deflate
      $r->content_type( $content_type );
      $m->clear_buffer();
      $m->out($AttachmentObj->OriginalContent);