mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-25 10:07:37 +01:00
Fixed stupid mistake with body of http requests.
This commit is contained in:
parent
67baf5100c
commit
d3cf795ebb
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user