mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-09 05:00:30 +08:00
opti: update crossRequest and support https request
This commit is contained in:
parent
c29deb5b8c
commit
2e000bb128
@ -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;
|
||||
|
BIN
static/attachment/cross-request-v2.1.zip
Normal file
BIN
static/attachment/cross-request-v2.1.zip
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user