summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/proxy/proxy.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/proxy/proxy.js b/modules/proxy/proxy.js
index e18ab6a..49caf54 100644
--- a/modules/proxy/proxy.js
+++ b/modules/proxy/proxy.js
@@ -38,7 +38,7 @@ module.exports=function(app,io,moddir){
var path="/"+req.path.split("/").slice(3).join("/");
if(iddict[id]){
fetch(req.method,iddict[id]+path,function(obj,body){
- if(obj.status==null){
+ if(obj==null||obj.status==null){
res.status(500).send("An error occurred...\n");
return;
}