norsl
Results
issues of
norsl
先看这个代码 ```javascript ctx.attachment(path.parse(filename).base) ctx.set('Content-Type', 'application/octet-stream') ctx.set('Content-Length', stat.size) ctx.body = fs.createReadStream(filePath) ``` 在Windows上面能够正常下载文件,没什么问题。 然后我同样的代码再Ubuntu上面,body的值就变成了stream对象的json形式。每个文件的内容都是这个stream对象 ```json { "_readableState": { "objectMode": false, "highWaterMark": 65536, "buffer": { "head": null, "tail": null, "length": 0 },...
need-more-information