/[projects]/miscJava/bukkit-minecraft-plugins/HoerupUtils/src/main/java/dk/thoerup/bukkit/hoeruputils/web/BanListener.java |
Parent Directory | Revision Log | Patch
revision 1940 by torben, Wed Mar 20 16:41:20 2013 UTC | revision 1941 by torben, Wed Mar 20 16:44:18 2013 UTC | |
---|---|---|
# | Line 59 public class BanListener implements Http | Line 59 public class BanListener implements Http |
59 | } | } |
60 | ||
61 | byte bytes[] = text.getBytes(); | byte bytes[] = text.getBytes(); |
62 | http.getResponseHeaders().add("Content-Type", "text/plain"); | |
63 | http.sendResponseHeaders(HttpURLConnection.HTTP_OK, bytes.length ); | http.sendResponseHeaders(HttpURLConnection.HTTP_OK, bytes.length ); |
64 | final OutputStream os = http.getResponseBody(); | final OutputStream os = http.getResponseBody(); |
65 | os.write(bytes); | os.write(bytes); |
|
ViewVC Help | |
Powered by ViewVC 1.1.20 |