mirror of
https://github.com/alibaba/anyproxy.git
synced 2025-04-23 23:31:26 +00:00
404
This commit is contained in:
parent
ac9b979d5d
commit
97ab818442
@ -171,7 +171,12 @@ function userRequestHandler(req,userRes){
|
||||
|
||||
//send response
|
||||
},function(callback){
|
||||
userRes.end(serverResData);
|
||||
if(404 == statusCode){
|
||||
var html404path = pathUtil.join(__dirname, '..', 'web', '404.html');
|
||||
userRes.end(fs.readFileSync(html404path));
|
||||
}else{
|
||||
userRes.end(serverResData);
|
||||
}
|
||||
callback();
|
||||
|
||||
//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