提交 ba877c18 authored 作者: Thomas Mueller's avatar Thomas Mueller

Improved test coverage

上级 4204251c
...@@ -86,7 +86,7 @@ public class WebServlet extends HttpServlet { ...@@ -86,7 +86,7 @@ public class WebServlet extends HttpServlet {
} }
@Override @Override
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException {
req.setCharacterEncoding("utf-8"); req.setCharacterEncoding("utf-8");
String file = req.getPathInfo(); String file = req.getPathInfo();
if (file == null) { if (file == null) {
...@@ -157,7 +157,8 @@ public class WebServlet extends HttpServlet { ...@@ -157,7 +157,8 @@ public class WebServlet extends HttpServlet {
} }
@Override @Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {
doGet(req, resp); doGet(req, resp);
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论