mirror of
https://github.com/YMFE/yapi.git
synced 2024-12-21 05:19:42 +08:00
opti: update corss-request
This commit is contained in:
parent
c6105a5d18
commit
a0792f3a46
@ -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.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
static/attachment/cross-request.zip
Normal file
BIN
static/attachment/cross-request.zip
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user