Skip to content

Commit

Permalink
fix for downloading attachments properly (remove incorrect length hea…
Browse files Browse the repository at this point in the history
…der)
  • Loading branch information
jasonmunro committed Apr 3, 2017
1 parent 375f4b6 commit 1693051
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/imap/modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,9 +379,6 @@ public function process() {
}
header('Content-Type: '.$part_struct['type'].'/'.$part_struct['subtype'].$charset);
header('Content-Transfer-Encoding: binary');
if (array_key_exists('size', $part_struct)) {
header('Content-Length: '.$part_struct['size']);
}
ob_end_clean();
while($line = $imap->read_stream_line()) {
if ($encoding == 'quoted-printable') {
Expand Down

0 comments on commit 1693051

Please sign in to comment.