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