![](/img/trans.png)
[英]res.set('Content-Type','image/jpg') is not working while serving image in node js
[英]Node Express res.set() not working
Express服务器端代码设置标头显然没有错。
响应对象中显示的headers
字段是一个返回一个或多个标头的函数。 在浏览器中调用console.log(response.headers())
将显示完整的响应头内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.