Prechádzať zdrojové kódy

upgrade smart-servlet to 0.6-SNAPSHOT

三刀 1 rok pred
rodič
commit
69c80e4a93

+ 1 - 1
frameworks/Java/smart-socket/src/main/java/org/smartboot/servlet/HelloWorldServlet.java

@@ -17,7 +17,7 @@ public class HelloWorldServlet extends HttpServlet {
     @Override
     protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
         resp.setContentLength(BODY.length);
-        resp.setContentType("text/plain; charset=UTF-8");
+        resp.setContentType("text/plain;charset=UTF-8");
         resp.setBufferSize(0);
         resp.getOutputStream().write(BODY);
     }