想要给csv文件添加text/csv的MIME,貌似默认情况是text/plain。
我现在是这样做的:
location ~ /static/csv_exports/ {
add_header Content-Type text/csv;
}
但是返回头部确是:
...
Content-Type: text/plain
...
Content-Type: text/csv
...
也就是Content-Type出现了两次,如何fix该问题?
|
|
想要给 我现在是这样做的:
但是返回头部确是:
也就是 |
||
|
|
|
|
应该使用
|
||
|
|