if (my @file_info = stat_encoded($frame_path)){
print 'Content-length: '.$file_info[7]."\n";
}
-print 'Content-type: '.$frame_data{'content-type'}."\n";
+if ($frame_data{'content-type'} ne '') {
+ print 'Content-type: '.$frame_data{'content-type'}."\n";
+}
unless (binmode STDOUT) {
close($fh);
exit fail_500("Can't switch output to binary mode.");