diff --git a/lib/requestHandler.js b/lib/requestHandler.js index 093c4fd..3dc58cb 100644 --- a/lib/requestHandler.js +++ b/lib/requestHandler.js @@ -150,6 +150,9 @@ function userRequestHandler(req,userRes){ }catch(e){} }); + res.on('error',function(error){ + console.log('error',error); + }); }); @@ -253,12 +256,17 @@ function mergeCORSHeader(reqHeader,originHeader){ targetObj["access-control-allow-methods"] = "GET, POST, PUT"; targetObj["access-control-allow-headers"] = reqHeader['access-control-request-headers'] || "-___-||"; + // + targetObj["Transfer-Encoding"] = "chunked"; + // Disable caching // If the response status is 304 not modified, the data event of response will not emmit - targetObj["Transfer-Encoding"] = "chunked" targetObj["Cache-Control"] = "no-cache, no-store, must-revalidate"; targetObj["Pragma"] = "no-cache"; targetObj["Expires"] = 0; + // + targetObj["server"] = "anyproxy server"; + targetObj["x-powered-by"] = "Alipay-ct-wd"; return targetObj; } diff --git a/web/css/page.css b/web/css/page.css index 7472f1f..c8a16e4 100644 --- a/web/css/page.css +++ b/web/css/page.css @@ -147,4 +147,24 @@ .http_status_504 { color: #910A0A; +} + + +#dragbar{ + position:absolute; + left:0px; + top:0px; + height: 100%; + float: left; + background-color:#CCC; + width: 3px; + cursor: col-resize; +} +#ghostbar{ + width:3px; + background-color:#000; + opacity:0.5; + position:absolute; + cursor: col-resize; + z-index:999 } \ No newline at end of file diff --git a/web/index.html b/web/index.html index 5bcb3dc..ed3586c 100644 --- a/web/index.html +++ b/web/index.html @@ -28,8 +28,11 @@