Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在静态中间件响应中设置标头?我需要将 utf-8 定义为字符集。
至于直接覆盖,这看起来不像一个选项。Connect 的文档显示它通过mime模块根据 mime 类型确定字符集。该mime模块似乎允许您自定义它的定义,所以我会先检查一下。
mime