bugfix for web gui

This commit is contained in:
OttoMao 2015-11-19 14:03:40 +08:00
parent f749880ec7
commit 225edd2317
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
19 Nov: AnyProxy 3.8.1:
* bugfix for image content in web GUI
16 Nov: AnyProxy 3.8.0:
* optimize the memory strategy

View File

@ -152,11 +152,13 @@ function Recorder(option){
}
result.type = "text";
result.content = bodyContent.toString();
}else if(imageMatch){
}else if(imageMatch && /image/i.test(imageMatch)){
result.type = "image";
result.mime = imageMatch;
result.content = bodyContent;
}else{
result.content = bodyContent.toString();
}
}catch(e){}

View File

@ -1,6 +1,6 @@
{
"name": "anyproxy",
"version": "3.8.0",
"version": "3.8.1",
"description": "A fully configurable proxy in NodeJS, which can handle HTTPS requests perfectly.",
"main": "proxy.js",
"bin": {