opti: update corss-request

This commit is contained in:
suxiaoxin 2017-10-15 17:59:51 +08:00
parent c6105a5d18
commit a0792f3a46
7 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ class interfaceController extends baseController {
async downloadCrx(ctx){
let filename = 'crossRequest.zip';
let dataBuffer = yapi.fs.readFileSync(yapi.path.join(yapi.WEBROOT, 'static/attachment/cross-request-v2.2.zip'));
let dataBuffer = yapi.fs.readFileSync(yapi.path.join(yapi.WEBROOT, 'static/attachment/cross-request.zip'));
ctx.set('Content-disposition', 'attachment; filename=' + filename);
ctx.set('Content-Type', 'application/zip');
ctx.body = dataBuffer;

Binary file not shown.