mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-08-04 21:39:04 +00:00
change: discard decrpecated GLOBAL
This commit is contained in:
@@ -51,7 +51,7 @@ function webInterface(config){
|
||||
app.get("/fetchBody",function(req,res){
|
||||
var query = req.query;
|
||||
if(query && query.id){
|
||||
GLOBAL.recorder.getDecodedBody(query.id, function(err, result){
|
||||
global.recorder.getDecodedBody(query.id, function(err, result){
|
||||
if(err || !result || !result.content){
|
||||
res.json({});
|
||||
}else if(result.type && result.type == "image" && result.mime){
|
||||
@@ -154,4 +154,4 @@ function webInterface(config){
|
||||
|
||||
inherits(webInterface, events.EventEmitter);
|
||||
|
||||
module.exports = webInterface;
|
||||
module.exports = webInterface;
|
||||
|
||||
Reference in New Issue
Block a user