如何在Mongoose中设置自定义Content-Type

时间:2014-05-29 14:22:35

标签: http-headers mongoose-web-server

我正在使用Mongoose Embedded Web-server library,通常Mongoose会负责发送正确的HTTP标头响应。

但在我的情况下,我需要将Content-Type:标头设置为font/opentype来发送数据,但是Mongoose会将其作为text/plain发送。

如何修改Mongoose以使用适当的标头发送?

0 个答案:

没有答案