【发布时间】:2020-08-11 17:02:25
【问题描述】:
app.use(
express.text({type: 'text/xml'}),
express.json({type: 'application/json'}),
other middlewares...) ```
发布方法头: { 连接:'保持活动', '内容长度':'1082', '内容编码':'gzip', “内容类型”:“文本/xml”, 接受:'/', '接受编码':'gzip', 来源:'chrome-extension://sxwwwagimdiliamlcqswqsw', '接受语言': 'fr-FR,fr;q=0.9,en-US;q=0.8,en;q=0.7' }
Also I have tried express.raw with a wildcard for the type, but the response
is always 400.
```express.raw({type:'*/*', inflate:true}), (req, res, next)=>{console.log(req.body); next() },```
【问题讨论】:
标签: express http-post gzip content-type content-encoding