Skip to content

Commit 13b0db9

Browse files
committed
bugfix for issue alibaba#29
1 parent 6975138 commit 13b0db9

8 files changed

Lines changed: 16 additions & 12 deletions

File tree

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
31 July: AnyProxy 3.7.2:
2+
3+
* bugfix for issue #29
4+
15
28 July: AnyProxy 3.7.1:
26

37
* fix a bug about deflate compression

lib/webInterface.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ function webInterface(config){
9898
ipAddress : ipAddress || "127.0.0.1"
9999
};
100100

101-
if(req.url == "/"){
101+
if( url.parse(req.url).pathname == "/"){
102102
res.setHeader("Content-Type", "text/html");
103103
res.end(juicer(indexTpl, opt));
104104
}else{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "anyproxy",
3-
"version": "3.7.1",
3+
"version": "3.7.2",
44
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
55
"main": "proxy.js",
66
"bin": {

web/build/filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function init(React){
2222
React.createElement("div", null,
2323
React.createElement("h4", {className: "subTitle"}, "Log Filter"),
2424
React.createElement("div", {className: "filterSection"},
25-
React.createElement("form", {className: "uk-form"},
25+
React.createElement("div", {className: "uk-form"},
2626
React.createElement("input", {className: "uk-form-large", ref: "keywordInput", onChange: self.dealChange, type: "text", placeholder: "keywords or /^regExp$/", width: "300"})
2727
)
2828
),

web/build/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ function util_merge(left,right){
4040
onOpen : function(){
4141
eventCenter.dispatchEvent("wsOpen");
4242
},
43-
onGetUpdate : function(content){
44-
eventCenter.dispatchEvent("wsGetUpdate",content);
43+
onGetUpdate : function(record){
44+
eventCenter.dispatchEvent("wsGetUpdate",record);
4545
},
4646
onError : function(e){
4747
eventCenter.dispatchEvent("wsEnd");

web/css/page.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ body, html {
287287
margin: 50px auto 0;
288288
}
289289

290-
.filterSection form{
290+
.filterSection .uk-form{
291291
text-align: center;
292292
}
293293

@@ -305,7 +305,7 @@ body, html {
305305
background-size: 100% 100%;
306306
}
307307

308-
.mapWrapper form{
308+
.mapWrapper .form{
309309
margin-top: 20px;
310310
}
311311

web/page.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
onOpen : function(){
8787
eventCenter.dispatchEvent("wsOpen");
8888
},
89-
onGetUpdate : function(content){
90-
eventCenter.dispatchEvent("wsGetUpdate",content);
89+
onGetUpdate : function(record){
90+
eventCenter.dispatchEvent("wsGetUpdate",record);
9191
},
9292
onError : function(e){
9393
eventCenter.dispatchEvent("wsEnd");
@@ -20402,7 +20402,7 @@
2040220402
React.createElement("div", null,
2040320403
React.createElement("h4", {className: "subTitle"}, "Log Filter"),
2040420404
React.createElement("div", {className: "filterSection"},
20405-
React.createElement("form", {className: "uk-form"},
20405+
React.createElement("div", {className: "uk-form"},
2040620406
React.createElement("input", {className: "uk-form-large", ref: "keywordInput", onChange: self.dealChange, type: "text", placeholder: "keywords or /^regExp$/", width: "300"})
2040720407
)
2040820408
),

web/src/filter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ function init(React){
2222
<div>
2323
<h4 className="subTitle">Log Filter</h4>
2424
<div className="filterSection">
25-
<form className="uk-form">
25+
<div className="uk-form">
2626
<input className="uk-form-large" ref="keywordInput" onChange={self.dealChange} type="text" placeholder="keywords or /^regExp$/" width="300"/>
27-
</form>
27+
</div>
2828
</div>
2929
<p>
3030
<i className="uk-icon-magic"></i>&nbsp;&nbsp;type <strong>/id=\d{3}/</strong> will give you all the logs containing <strong>id=123</strong>

0 commit comments

Comments
 (0)