diff --git a/proxy.js b/proxy.js
index a0854fc..7d35fc1 100644
--- a/proxy.js
+++ b/proxy.js
@@ -23,7 +23,6 @@ var http = require('http'),
events = require("events"),
express = require("express"),
ip = require("ip"),
- ent = require("ent"),
ThrottleGroup = require("stream-throttle").ThrottleGroup,
iconv = require('iconv-lite'),
Buffer = require('buffer').Buffer;
diff --git a/web/anyproxy_wsUtil.js b/web/anyproxy_wsUtil.js
index 29d0803..a4509f0 100644
--- a/web/anyproxy_wsUtil.js
+++ b/web/anyproxy_wsUtil.js
@@ -39,21 +39,21 @@ function anyproxy_wsUtil(config){
type = data.type,
content = data.content,
reqRef = data.reqRef;
-
- if(type == "update"){
- config.onGetUpdate && config.onGetUpdate.call(self, content);
-
- }else if(type == "body"){
- config.onGetBody && config.onGetBody.call(self, content, reqRef);
-
- if(data.reqRef && self.bodyCbMap[reqRef]){
- self.bodyCbMap[reqRef].call(self,content);
- }
- }
-
}catch(e){
config.onError && config.onError.call(self, new Error("failed to parse socket data - " + e.toString()) );
}
+
+
+ if(type == "update"){
+ config.onGetUpdate && config.onGetUpdate.call(self, content);
+
+ }else if(type == "body"){
+ config.onGetBody && config.onGetBody.call(self, content, reqRef);
+
+ if(data.reqRef && self.bodyCbMap[reqRef]){
+ self.bodyCbMap[reqRef].call(self,content);
+ }
+ }
}
dataSocket.onopen = function(e){
diff --git a/web/index.html b/web/index.html
index c2d80a6..19e9b95 100644
--- a/web/index.html
+++ b/web/index.html
@@ -37,23 +37,8 @@
-
-
-
-
- id |
- method |
- code |
- host |
- path |
- mime type |
- time |
-
-
-
-
-
+
-
-
-
-
+