Fixed stupid mistake with body of http requests.

This commit is contained in:
FrozenCow 2011-02-18 19:42:32 +01:00
parent 67baf5100c
commit d3cf795ebb

View File

@ -162,10 +162,6 @@ public class HttpServerConnection extends Thread {
return;
}
if (bound > 0) {
boundBody.skip(bound);
}
HttpResponse response = new HttpResponse(this, out);
try {
@ -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) {