mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-23 20:31:25 +00:00
commit
e73cbb1206
@ -171,7 +171,12 @@ function userRequestHandler(req,userRes){
|
|||||||
|
|
||||||
//send response
|
//send response
|
||||||
},function(callback){
|
},function(callback){
|
||||||
|
if(404 == statusCode){
|
||||||
|
var html404path = pathUtil.join(__dirname, '..', 'web', '404.html');
|
||||||
|
userRes.end(fs.readFileSync(html404path));
|
||||||
|
}else{
|
||||||
userRes.end(serverResData);
|
userRes.end(serverResData);
|
||||||
|
}
|
||||||
callback();
|
callback();
|
||||||
|
|
||||||
//udpate record info
|
//udpate record info
|
||||||
|
27
web/404.html
Normal file
27
web/404.html
Normal file
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user