...
|
...
|
@@ -238,6 +238,19 @@ exports.downFile = function(req, res) { |
|
|
request(options).pipe(res);
|
|
|
};
|
|
|
|
|
|
exports.download=function(req,res){
|
|
|
var options = {
|
|
|
method: 'POST',
|
|
|
url: '/batch/download',
|
|
|
headers: {
|
|
|
'content-type': 'application/json'
|
|
|
},
|
|
|
body: req.query,
|
|
|
json: true
|
|
|
};
|
|
|
request(options).pipe(res);
|
|
|
}
|
|
|
|
|
|
exports.proxy = function(req,res) {
|
|
|
var headers = getHeader(req, res);
|
|
|
headers['Content-Type'] = 'application/json';
|
...
|
...
|
|