Browse Source

Corrected content type for plaintext test.

Brian Hauer 12 years ago
parent
commit
32f76eab91
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vertx/WebServer.java

+ 1 - 1
vertx/WebServer.java

@@ -45,7 +45,7 @@ public class WebServer extends Verticle implements Handler<HttpServerRequest> {
   }
   }
 
 
   private void handlePlainText(HttpServerRequest req) {
   private void handlePlainText(HttpServerRequest req) {
-    req.response().putHeader("Content-Type", "application/json; charset=UTF-8");
+    req.response().putHeader("Content-Type", "text/plain; charset=UTF-8");
     req.response().putHeader("Content-Length", helloWorldContentLength);
     req.response().putHeader("Content-Length", helloWorldContentLength);
     req.response().end(helloWorldBuffer);
     req.response().end(helloWorldBuffer);
   }
   }