如何修复php添加标题('X-Archive-Files:zip')但是得到nginx 502错误?

I have add module zip_mod to nginx,wish download zip file,and when I add header('X-Archive-Files: zip'); in php,But the request resopnsed with 502 bad way.Any suggest?

I have check the nginx error.log and no record about it.And when I remove header('X-Archive-Files: zip');, there is no error,but can't get zip file.

        header('X-Accel-Chareset: utf-8');
        header('Content-Type: application/octet-stream');
        header('Content-Disposition: attachment; filename=test.zip');
        header('X-Archive-Files: zip');

        $crc32 = "-";
        $file1='uploads/cfile/5a7c26f3c0790.png';
        $file2='uploads/cfile/5a7c36a7825dd.png';
        $name1='5a7c26f3c0790.png';
        $name2='5a7c36a7825dd.png';
        printf("%s %d %s %s
", $crc32, $this->get_remote_filesize($file1), $file1,  $name1);
        printf("%s %d %s %s
", $crc32, $this->get_remote_filesize($file2), $file2,  $name2);