Browse Source

Spelling is hard.

msmith-techempower 10 years ago
parent
commit
ccf0b6fc69

+ 1 - 1
frameworks/Java/servlet/src/main/java/hello/FortunesServlet.java

@@ -31,7 +31,7 @@ public class FortunesServlet extends HttpServlet
       throws ServletException, IOException
       throws ServletException, IOException
   {
   {
     // Set content type to JSON
     // Set content type to JSON
-    res.setCharacterEncodring(UTF8);
+    res.setCharacterEncoding(UTF8);
     res.setContentType(CONTENT_TYPE_HTML_UTF8);
     res.setContentType(CONTENT_TYPE_HTML_UTF8);
 
 
     final List<Fortune> fortunes = new ArrayList<>();
     final List<Fortune> fortunes = new ArrayList<>();