Fix: fix the error when allow localhost access the servlet only,the
server does't response any error info to the client