opti: update crossRequest and support https request

This commit is contained in:
suxiaoxin 2017-10-07 06:54:59 +08:00
parent c29deb5b8c
commit 2e000bb128
2 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,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.0.1.zip'));
let dataBuffer = yapi.fs.readFileSync(yapi.path.join(yapi.WEBROOT, 'static/attachment/cross-request-v2.1.zip'));
ctx.set('Content-disposition', 'attachment; filename=' + filename);
ctx.set('Content-Type', 'application/zip');
ctx.body = dataBuffer;

Binary file not shown.