1

我想返回一个没有扩展名的文件。
但是 nginx 用application/octet-stream.

我想根据文件头而不是扩展名返回一个具有正确 mime的文件,例如使用file --mime-type -b <filename>

我应该怎么做?

4

0 回答 0