express.static 只支持get请求
发布于 12 年前 作者 ldjking 5325 次预览 最后一次回复是 12 年前 来自
这一点可以在connect的代码中看到 connect/lib/middleware/static.js if (‘GET’ != req.method && ‘HEAD’ != req.method) return next();
只支持 get和head请求 这有点不方便,有些json格式的数据无法通过post访问
1 回复
这一点可以在connect的代码中看到 connect/lib/middleware/static.js if (‘GET’ != req.method && ‘HEAD’ != req.method) return next();
只支持 get和head请求 这有点不方便,有些json格式的数据无法通过post访问
请遵从http规范,不造成服务器数据修改的始终用get请求