From d3cf795ebbf9955eb7f2867065537da4d9e5f3b1 Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Fri, 18 Feb 2011 19:42:32 +0100 Subject: [PATCH] Fixed stupid mistake with body of http requests. --- src/main/java/org/dynmap/web/HttpServerConnection.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/dynmap/web/HttpServerConnection.java b/src/main/java/org/dynmap/web/HttpServerConnection.java index 847227ac..850938ce 100644 --- a/src/main/java/org/dynmap/web/HttpServerConnection.java +++ b/src/main/java/org/dynmap/web/HttpServerConnection.java @@ -161,10 +161,6 @@ public class HttpServerConnection extends Thread { socket.close(); return; } - - if (bound > 0) { - boundBody.skip(bound); - } HttpResponse response = new HttpResponse(this, out); @@ -181,6 +177,10 @@ public class HttpServerConnection extends Thread { return; } + if (bound > 0) { + boundBody.skip(bound); + } + String connection = response.fields.get("Connection"); String contentLength = response.fields.get("Content-Length"); if (contentLength == null && connection == null) {